`.cls` and `.sty` files merging to create an appendixWhat is the difference between usepackage{mcode} and...

Python: next in for loop

To string or not to string

Problem of parity - Can we draw a closed path made up of 20 line segments...

Why was the small council so happy for Tyrion to become the Master of Coin?

Why not use SQL instead of GraphQL?

Why does Kotter return in Welcome Back Kotter?

Why are electrically insulating heatsinks so rare? Is it just cost?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Do VLANs within a subnet need to have their own subnet for router on a stick?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

How to format long polynomial?

How can I make my BBEG immortal short of making them a Lich or Vampire?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

What are the differences between the usage of 'it' and 'they'?

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Languages that we cannot (dis)prove to be Context-Free

Is it unprofessional to ask if a job posting on GlassDoor is real?

Collect Fourier series terms

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Minkowski space

Which models of the Boeing 737 are still in production?

Maximum likelihood parameters deviate from posterior distributions

Why can't I see bouncing of a switch on an oscilloscope?



`.cls` and `.sty` files merging to create an appendix


What is the difference between usepackage{mcode} and usepackage{listings} for MATLAB codes?Where do I place my own .sty or .cls files, to make them available to all my .tex files?.cls vs .sty filesUnderstand .cls files and working with sig-alternate.clsIssue with custom stylesModular LaTeX document preambles and class filesLatex: How to generate derived .sty files?LaTeX can't find .cls filesCustom cls and sty not foundUnderstand how to change the style of chapters numbering with *.cls and *.sty filesCan't load a .cls file in TexStudio -Texlive 2018













0















I have a .tex file, actually it is from a certain layout of my university, and it comes with a .cls file of its own. And now I have to create an appendix section contains only some Matlab codes. I have found an example latex code for Matlab code and as I guessed there is a .sty file with it. Unfortunately as they have different document class, I could not merge them together. For example, in the .sty file the coder has defined lstdefinelanguage{matlabfloz}, and in my main.tex file coud not recognize it.



Here is my question, do I have to define that language in the .cls file? Or there is some easier way without doing that?



(I tried to use inputpdf command, I do not have any error message afterwards, but it does not appear in compiled pdf which is I did not understand.)



documentclass{article} usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} appendix begin{document} begin{lstlisting} for i = 1:3 if i >= 5 && a ~= b % literate programming replacement disp('cool'); % comment with some §mcommentfontLaTeX in it: $mcommentfontpi x^2$§ end [:,ind] = max(vec); x_last = x(1,end) - 1; v(end); really really long really really long really really long really really long really really long line % blaaaaaaaa ylabel('Voltage (µV)'); end end{lstlisting} end{document}









share|improve this question









New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

    – StefanH
    10 hours ago













  • Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

    – Esra Akdoğan
    9 hours ago













  • Maybe this answer can help tex.stackexchange.com/a/214617/95544

    – StefanH
    9 hours ago











  • This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

    – Esra Akdoğan
    9 hours ago













  • please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

    – David Carlisle
    8 hours ago
















0















I have a .tex file, actually it is from a certain layout of my university, and it comes with a .cls file of its own. And now I have to create an appendix section contains only some Matlab codes. I have found an example latex code for Matlab code and as I guessed there is a .sty file with it. Unfortunately as they have different document class, I could not merge them together. For example, in the .sty file the coder has defined lstdefinelanguage{matlabfloz}, and in my main.tex file coud not recognize it.



Here is my question, do I have to define that language in the .cls file? Or there is some easier way without doing that?



(I tried to use inputpdf command, I do not have any error message afterwards, but it does not appear in compiled pdf which is I did not understand.)



documentclass{article} usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} appendix begin{document} begin{lstlisting} for i = 1:3 if i >= 5 && a ~= b % literate programming replacement disp('cool'); % comment with some §mcommentfontLaTeX in it: $mcommentfontpi x^2$§ end [:,ind] = max(vec); x_last = x(1,end) - 1; v(end); really really long really really long really really long really really long really really long line % blaaaaaaaa ylabel('Voltage (µV)'); end end{lstlisting} end{document}









share|improve this question









New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

    – StefanH
    10 hours ago













  • Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

    – Esra Akdoğan
    9 hours ago













  • Maybe this answer can help tex.stackexchange.com/a/214617/95544

    – StefanH
    9 hours ago











  • This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

    – Esra Akdoğan
    9 hours ago













  • please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

    – David Carlisle
    8 hours ago














0












0








0








I have a .tex file, actually it is from a certain layout of my university, and it comes with a .cls file of its own. And now I have to create an appendix section contains only some Matlab codes. I have found an example latex code for Matlab code and as I guessed there is a .sty file with it. Unfortunately as they have different document class, I could not merge them together. For example, in the .sty file the coder has defined lstdefinelanguage{matlabfloz}, and in my main.tex file coud not recognize it.



Here is my question, do I have to define that language in the .cls file? Or there is some easier way without doing that?



(I tried to use inputpdf command, I do not have any error message afterwards, but it does not appear in compiled pdf which is I did not understand.)



documentclass{article} usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} appendix begin{document} begin{lstlisting} for i = 1:3 if i >= 5 && a ~= b % literate programming replacement disp('cool'); % comment with some §mcommentfontLaTeX in it: $mcommentfontpi x^2$§ end [:,ind] = max(vec); x_last = x(1,end) - 1; v(end); really really long really really long really really long really really long really really long line % blaaaaaaaa ylabel('Voltage (µV)'); end end{lstlisting} end{document}









share|improve this question









New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have a .tex file, actually it is from a certain layout of my university, and it comes with a .cls file of its own. And now I have to create an appendix section contains only some Matlab codes. I have found an example latex code for Matlab code and as I guessed there is a .sty file with it. Unfortunately as they have different document class, I could not merge them together. For example, in the .sty file the coder has defined lstdefinelanguage{matlabfloz}, and in my main.tex file coud not recognize it.



Here is my question, do I have to define that language in the .cls file? Or there is some easier way without doing that?



(I tried to use inputpdf command, I do not have any error message afterwards, but it does not appear in compiled pdf which is I did not understand.)



documentclass{article} usepackage[framed,numbered,autolinebreaks,useliterate]{mcode} appendix begin{document} begin{lstlisting} for i = 1:3 if i >= 5 && a ~= b % literate programming replacement disp('cool'); % comment with some §mcommentfontLaTeX in it: $mcommentfontpi x^2$§ end [:,ind] = max(vec); x_last = x(1,end) - 1; v(end); really really long really really long really really long really really long really really long line % blaaaaaaaa ylabel('Voltage (µV)'); end end{lstlisting} end{document}






pdftex document-classes






share|improve this question









New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 8 hours ago







Esra Akdoğan













New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 10 hours ago









Esra AkdoğanEsra Akdoğan

12




12




New contributor




Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Esra Akdoğan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

    – StefanH
    10 hours ago













  • Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

    – Esra Akdoğan
    9 hours ago













  • Maybe this answer can help tex.stackexchange.com/a/214617/95544

    – StefanH
    9 hours ago











  • This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

    – Esra Akdoğan
    9 hours ago













  • please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

    – David Carlisle
    8 hours ago














  • 1





    I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

    – StefanH
    10 hours ago













  • Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

    – Esra Akdoğan
    9 hours ago













  • Maybe this answer can help tex.stackexchange.com/a/214617/95544

    – StefanH
    9 hours ago











  • This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

    – Esra Akdoğan
    9 hours ago













  • please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

    – David Carlisle
    8 hours ago








1




1





I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

– StefanH
10 hours ago







I do not recommend to change in the .cls-file. If I understand right your proiblem is that the command lstdefinelanguage is not defined. Have you included the listingspackage (usepackage{listings}) beforte you use it?

– StefanH
10 hours ago















Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

– Esra Akdoğan
9 hours ago







Thanks for the answer. Yes I have included listings package. I guess the problem is mcode package. It gives an error such as "Package Listings Error: language matlabfloz undefined." However when I open mcode.sty file, I see a line lstdefinelanguage{matlabfloz} in it.mcode.sty is normally does not exist in MiKTex installation files, so I added it myself manually.

– Esra Akdoğan
9 hours ago















Maybe this answer can help tex.stackexchange.com/a/214617/95544

– StefanH
9 hours ago





Maybe this answer can help tex.stackexchange.com/a/214617/95544

– StefanH
9 hours ago













This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

– Esra Akdoğan
9 hours ago







This is the code that I found for implementing the MATLAB codes. And it works errorless when I compile it seperately. However I need to add appendix in my own thesis.tex file which is started documentclass[chaparabic,ceng,ms,12pt,oneandhalf]{metu}. here the {metu} stands for the {metu}.cls (I guess). I think I should change or add somethings in that {metu}.cls file. @David Carlisle

– Esra Akdoğan
9 hours ago















please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

– David Carlisle
8 hours ago





please don't add example code in comments, as you see it dies not really work, you can edit the question to add an example in a code block. I see no reason why you would need to change a class file.

– David Carlisle
8 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Esra Akdoğan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483523%2fcls-and-sty-files-merging-to-create-an-appendix%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Esra Akdoğan is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Esra Akdoğan is a new contributor. Be nice, and check out our Code of Conduct.













Esra Akdoğan is a new contributor. Be nice, and check out our Code of Conduct.












Esra Akdoğan is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483523%2fcls-and-sty-files-merging-to-create-an-appendix%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...