Reputation
1,499
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 10 21
Impact
~45k people reached

  • 0 posts edited
  • 0 helpful flags
  • 33 votes cast
Sep
9
comment xparse verbatim with newline
What I'm trying to figure out is how you new to use the \begingroup and \endgroup and split the macro up into two parts like that.
Sep
8
comment xparse verbatim with newline
Can you explain what the macro is doing? I'm a bit confused on why it does not print to the pdf.
Sep
8
accepted xparse verbatim with newline
Sep
8
revised xparse verbatim with newline
added 264 characters in body
Sep
8
comment xparse verbatim with newline
Maybe this luaescapestring is messing with the newlines. But see my update for a working example that doesn't use a macro. Using your method I still do not get new lines but just extra spaces and fi for newlines.
Sep
8
revised xparse verbatim with newline
added 262 characters in body
Sep
8
revised xparse verbatim with newline
added 262 characters in body
Sep
8
comment xparse verbatim with newline
Ok, using + stops the error but now I do not get end of lines at all. I'm printing out the argument to the console using lualatex and there are no new-lines in the statement. See my update:
Sep
8
asked xparse verbatim with newline
Sep
5
comment How to stop a block of code from being parsed?
I do not think this will work in any way in solving my original problem? The latex code will have an issue in that stuff like "\par" will have \p interpreted as an escape code. luaexec only solves half the problem of modifying the cat codes but not fixing up lua "strings".
Sep
5
comment How to stop a block of code from being parsed?
While it does work it also adds \par on new lines(instead of using a \n). So it works but changes the code which is not good.
Sep
5
asked How to stop a block of code from being parsed?
Sep
4
accepted tikz matrix keep spaces in text
Sep
4
comment monospaced fonts not respecting spaces?
Thats it! I tried that since kurt mentioned it but didn't use the \lstinline+ method and got errors. Thanks for your time!
Sep
4
accepted monospaced fonts not respecting spaces?
Sep
4
comment monospaced fonts not respecting spaces?
Ok, It works. Is there any way I can use a special character to represent the tabs(space would be best ;). Something like A..B..C.. and Aa.B..Cc.Dd.. This way I can keep it aligned in code too for better reading. e.g., can I make . be treated like a tab character?
Sep
4
comment monospaced fonts not respecting spaces?
no, but even if I did. One line might be Ac Be Cf. So not sure if your method will work.
Sep
4
comment monospaced fonts not respecting spaces?
Using your exact code doesn't give the same results ;/ I end up with misalligned columns ;/ Not sure why. I'm using miktex 2.8 x64.
Sep
4
revised monospaced fonts not respecting spaces?
added 899 characters in body
Sep
4
comment monospaced fonts not respecting spaces?
@DavidCarlisle Yep, but for some reason they don't seem to work well and causes some problems. See my second update.