keith77777
asked on
In Latex, how do I start a remark on a fresh line?
The construction: \remark in Latex is used like this:
\remark This is an obvious comment.
The resulting output is:
Remark 1 This is an obvious comment.
I wish it to be:
Remark 1
This is an obvious comment. (starting on a fresh line)
I think it is done using the \renewcommand or \newcommand functions.
I would be interested in both if someone is willing to help.
\remark This is an obvious comment.
The resulting output is:
Remark 1 This is an obvious comment.
I wish it to be:
Remark 1
This is an obvious comment. (starting on a fresh line)
I think it is done using the \renewcommand or \newcommand functions.
I would be interested in both if someone is willing to help.
ASKER
fridom
Thanks, but too involved - no items involved for example.
I just want the call: \remark give output that I would expect to result from "\\" or \newline but it will not accept it.
I want the output to be:
Remark 1
The Romans used special characters to construct their number system.
Remark 2
The Arabians used the system we adopt today.
Thanks, but too involved - no items involved for example.
I just want the call: \remark give output that I would expect to result from "\\" or \newline but it will not accept it.
I want the output to be:
Remark 1
The Romans used special characters to construct their number system.
Remark 2
The Arabians used the system we adopt today.
I'm short on time and can not look into it further what happens if you try
\remark { \\ Text I want on it's one line} ?
you should really check the above mentioned page and come up with a small command
for your purpose....
\remark { \\ Text I want on it's one line} ?
you should really check the above mentioned page and come up with a small command
for your purpose....
ASKER
No the new comment refers me back to the previous one.
Previous experience tells me that Oklit could solve this problem easily.
Keith
Previous experience tells me that Oklit could solve this problem easily.
Keith
I don't know the \remark command but I guess it is a modification of the enumerate environment's \item command. In which case you might think this would do what you want:
\renewcommand{\theenumi}{R emark \arabic{enumi} \\ }
However it does not, and I don't have the expertise to give you your preferred solution, sorry. I can however offer you this hack:
\remark \ \\ This is an obvious comment
It works on the principle that an item (remark?) is allowed to include a new line character as long as it is not the first character.
Hope this helps.
\renewcommand{\theenumi}{R
However it does not, and I don't have the expertise to give you your preferred solution, sorry. I can however offer you this hack:
\remark \ \\ This is an obvious comment
It works on the principle that an item (remark?) is allowed to include a new line character as long as it is not the first character.
Hope this helps.
ASKER
Yes, your second suggestion works, but it is not automatic - you have to be diligent and I have hundreds of remarks.
My original request for a proper modification of \remark is justified.
Keith
My original request for a proper modification of \remark is justified.
Keith
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Would have liked to use renewcommand and retain \remark but no a big issue.
Cannot, however, understand why renewcommand will not work.
Keith
Cannot, however, understand why renewcommand will not work.
Keith
I think I've cracked it! My previous attempts failed due to problems with recursive definition of remark and not knowing how to correctly pass on the arguments. Both of these problems appear to be solved with this:
% take a `snapshot' of the remark command
\let\oldremark\remark
% redefine remark based upon the `snapshot'
\renewcommand\remark[2][]{ \oldremark {#1}\ \\ #2}
Admittedly, this assumes that your \remark command is a redefinition of \item and that two parameters were passed-on when remark was defined. If only one argument was passed, then it may be necessary to use this version:
\let\oldremark\remark
\renewcommand\remark[1][]{ \oldremark {}\ \\ #1}
% take a `snapshot' of the remark command
\let\oldremark\remark
% redefine remark based upon the `snapshot'
\renewcommand\remark[2][]{
Admittedly, this assumes that your \remark command is a redefinition of \item and that two parameters were passed-on when remark was defined. If only one argument was passed, then it may be necessary to use this version:
\let\oldremark\remark
\renewcommand\remark[1][]{
ASKER
To sailingbye
Many thanks - used the latter.
Keith
Many thanks - used the latter.
Keith
http://en.wikibooks.org/wiki/LaTeX/Customizing_LaTeX
Regards
Friedrich