Reputation
4,243
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 27
Newest
 Nice Answer
Impact
~71k people reached

Jul
10
comment Write the same footnote in each page
how about same-footer-line-on-every-page or same-header-and-footer-for-every-page
Jul
10
revised Database style reports in LaTeX
typos
Jul
10
answered Database style reports in LaTeX
Jul
7
comment How can I draw engineer dimensioning diagrams?
@Mark thanks for IPE hint. I never knew about it, it looks really nice and it allows one to entry direct Latex code on the image. That is good suggestion. Will learn it also.
Jul
7
comment How can I draw engineer dimensioning diagrams?
(It is not easy to type mathematical formulas in visio) I do this all the time, I also use Visio. like this: I open SW (scientific word) write my math in there, then select the math as_picture from SW, and paste it on VISIO. Here is an example image and another the math ofcourse will not be as good as native Latex code as with Tikz, but it is much easier to do and move the math around using the mouse, and one can resize it also ;)
Jul
6
accepted How to use luacode* to eliminate need to escape “\”?
Jul
6
comment How to use luacode* to eliminate need to escape “\”?
thanks. I tried everything, except removing the new lines. Since according to lua manual one can have long multi line string using [[...]] and they show an example there as well. So this tells me that Lua inside Tex is not really the same as Lua outside Tex. I tried my example I posted in the comment above, and it worked in the standalone Lua on my Linux. So it should also have worked inside Latex. I hope who ever maintain LuaTex can look into this and see why it does not work inside Latex as outside.
Jul
6
answered screenplay-pkg affects margins
Jul
6
comment screenplay-pkg affects margins
spine margins (about the size of 1 letter) How to do actually determine this? It also helps to put a link to this package {screenplay-pkg} so that folks do not spend time looking for it since it is not on CTAN
Jul
6
comment How to use luacode* to eliminate need to escape “\”?
@JavierBezos I can't get the [[..]] to work inside Latex. I see the correct string build by printing it, but the PDF shows grabage. Feel free to modify the example I have above to show me how. Here is one of my attempts.\documentclass{article} \usepackage{luacode} \begin{document} The following is my table \begin{luacode*} i=6; j=8; a = [[\begin{tabular}{|l|l|}\hline ]]..i.."&"..j..[[\\ \hline \end{tabular} ]]; print(a); tex.print(a); \end{luacode*} \end{document} I can do all this in Python using r""..."" so easily, I wonder why would I need to use Lua inside Latex for this.
Jul
5
revised Is it possible to view the latex code after Lua expansion is made?
made it more clear
Jul
5
comment Is it possible to view the latex code after Lua expansion is made?
Ok, but I thought I was very clear there when I said What I'd like to now see is the Latex file that would resulted after the Lua code expansion, which should be something as follows and also gave example of what the file I'd like to see would look like. But I will add more in few minutes....I need to make a little larger example....
Jul
5
comment Is it possible to view the latex code after Lua expansion is made?
I wonder if you want us to print the TeX code into the LaTeX document in a verbatim fashion Not really. I do not want the lua code printed in Verbatim. I just wanted to see the full Latex document, after all the lua code was replaced by the actual Latex code it generated as I have in the example in my question.
Jul
5
comment Is it possible to view the latex code after Lua expansion is made?
Thanks. This does make it little hard to see the bits of the code on the screen, and if I understand you method, it means one has to duplicate all the lua code inside the Latex file? One copy to use print and one copy to use tex.print? it would be nice if luatex would add support to generate the full expended latex to some external file as I said in my above comment to the other answer. Thanks for your answer.
Jul
5
comment Is it possible to view the latex code after Lua expansion is made?
Oh, I did not know the message on the screen I was getting was by design. I knew very little about these Latex tricks. But this method is not really practical for me. First of all, I do not want to write "\noexpand" everywhere, this makes the code hard to read and write. All what I was thinking of, is that if the final latex file, after all expansion, could be written to some other file, say foo.lux or something (we need new extension :) and then a user can look at the .lux file to see the full Latex code which was actually compiled to generated the pdf after all the expansion.
Jul
5
awarded  Nice Answer
Jul
5
awarded  Nice Question
Jul
5
comment Is it possible to view the latex code after Lua expansion is made?
does the above code compile ok for you? Here is screen shot showing the error I get. I copied the code as is. !Mathematica graphics fyi, I am using TL 2015 on Linux mint.
Jul
4
revised Reducing fraction using LaTeX 3
clean code
Jul
4
answered Reducing fraction using LaTeX 3