NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
\newcommand has two mandatory arguments, but it seems that you try to use it with only one. So they always consume the next (non comment) token as argument, i.e.,
defines \supnameForth as \end. Therefore the \end{flushright} is not a \end of environment flushright any longer.
BTW: All these \newcommand do not make any sense, because they became invalid with the end of the environment and are not used anywhere inside the environment. So I think, this is a XY problem and you should explain (and show with a minimal working example) what you try to do.
BTW: Please use code tags to mark the code in your postings. For blockcode you should use [code]…[/code]. For inline code you can use the [latex]…[/latex]. Both are available from the toolbar.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms.
@Ijon Tichy many thanks for your reply. I just try your suggestion 'defines \supnameForth as \end. Therefore the \end{flushright} is not a \end of environment flushright any longer.' however the problem is still persisting.
It seems like it is on this \end{minipage}\\[3cm]
I never told you, that you should define \supnameForth. I told you, that all these \newcommand you are already using are wrong. And I told you, that you should explain, what you try to do. Maybe you just wanted:
But this is only a speculation. Once again: If you need more help, please show us a minimal working example and tell us, what you are trying to do with that code. If you do not, I cannot help and will not try again.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms.
@Ijon Tichy
All start from here trying to modify the thesis information. The Latex template version 2.5 (27/8/2017). I need to run the title page with more than one supervisor’s name. And my pdfTex version is 3.14159265-2.6-1.40.21(MikTex 20.7)
And it was successfully compiled pdf tex works except it came with the same name of the principal supervisor for the 3 others because in the thesis information it appears ‘Your supervisor's name, this is used in the title page, print it elsewhere with \supname’
So I made these commands because without \newcommand it was impossible to go further
tell us, what you are trying to do with that code.
@Ijon Tichy I am trying to run this title page it is stuck on line 131... I attach the texworks as well...
Please let me know what to do I have tried before without these \newcommand[/latexa] even before I posted here it did not work out...
Following is the attachment
[attachment=0]main.tex[/attachment]
As I already told, the \newcommand commands are completely nonsense here. \newcommand has two mandatory arguments and is used to define a macro/command, but not to get the content of a macro. I think, you want something like:
Many thanks, @Ijon Tichy. By working on this piece of thesis I will constantly learn and get to build knowledge about the LaTex. It seems like the amount of tutorials watched and readings about basic notion do not suffice; the practice has its own challenge. You are right I will keep reading the introduction to LaTex
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p