Search found 6 matches
- Tue Sep 04, 2012 11:03 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
Re: newcommand parsed output?
Great! Thanks a lot, Stefan.
- Tue Sep 04, 2012 10:46 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
Re: newcommand parsed output?
I and my friends have lengthy (lecture and reading)notes which make extensive use of newcommand. I wanted to convert those docs to wordpress to make them public and collaborative. We found a tool (http://lucatrevisan.wordpress.com/latex-to-wordpress/) that converts latex to wordpress code, but as an ...
- Tue Sep 04, 2012 10:14 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
Re: newcommand parsed output?
Yes.
It would be great if I can somehow get the 'final' source file, in which all the occurrences of the old commands are replaced as I have described in the newcommand. Is there an easy way to do this?
It would be great if I can somehow get the 'final' source file, in which all the occurrences of the old commands are replaced as I have described in the newcommand. Is there an easy way to do this?
- Tue Sep 04, 2012 9:59 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
Re: newcommand parsed output?
Clarification:
I want to automatically replace all appearances of <my input to new-command eg.\ket{bla}> in your source with <the replaced code (as a result of newcommand) eg.\left|bla\right>)
Is there a way to do this?
I want to automatically replace all appearances of <my input to new-command eg.\ket{bla}> in your source with <the replaced code (as a result of newcommand) eg.\left|bla\right>)
Is there a way to do this?
- Tue Sep 04, 2012 9:45 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
newcommand parsed output?
Yes, that is what I have in mind: I want to automatically replace all appearances of
ps: Thanks for the information about the braket package.
\ket{bla}
in your source with \left|bla\right>
. Is there a way to do this?ps: Thanks for the information about the braket package.
- Tue Sep 04, 2012 9:15 pm
- Forum: Text Formatting
- Topic: newcommand parsed output?
- Replies: 11
- Views: 5682
newcommand parsed output?
I use the following:
\newcommand{\ket}[1]{\left| #1 \right>} % for Dirac bras
instead of typing \left| ket-text \right> every time.
But, for some purpose, I want my tex file in the format with the replaced commands; i.e. tex code that I would have written had I not known about \newcommand at all ...
\newcommand{\ket}[1]{\left| #1 \right>} % for Dirac bras
instead of typing \left| ket-text \right> every time.
But, for some purpose, I want my tex file in the format with the replaced commands; i.e. tex code that I would have written had I not known about \newcommand at all ...