| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 5 months |
| seen | Nov 25 '12 at 12:02 | |
| stats | profile views | 91 |
|
Dec 6 |
awarded | Yearling |
|
Nov 25 |
comment |
Reducing output garbage @MikaelVejdemo-Johansson Because I don't wanna see garbage that is irrelevant to the project. those lines I mentioned are absolutely useless. Why do I need to know that some .fd is included? What's the point? To let me know I included the file? Do I need to see it every compilation and have it break the flow of the console output just to let me know each time it was included? (I think I got it the first time) If I need more verbose output I'll enable it by not using batchmode. |
|
Nov 25 |
revised |
Reducing output garbage added 85 characters in body |
|
Nov 25 |
asked | Reducing output garbage |
|
Sep 18 |
comment |
Consume/absorb a token @BrunoLeFloch You say it has already converted tokens before \InsertToken appears. But I thought TeX processed tokens one at a time and made decisions based on what the previous token or token group was? The way I see it, \InsertToken{\}mymacro first calls \InsertToken{\} and the macro can do what it wants(insert or remove stuff in the token stream. THEN whatever the "output" of the macro was gets substituted for the call. So we end up with xxxxmymacro where xxx is the "output" of the macro call. Now maybe TeX already parsed xxxx and won't reparse xxxxmymacro as a whole? |
|
Sep 18 |
comment |
Consume/absorb a token @HeikoOberdiek isn't \` with a catcode of 0 a catcode-0-token? Is the TeX parser a look-ahead parser so \mymacro will be considered one token? Instead of a stream of tokens? My understanding is that TeX is a statemachine with, IIRC, 3 states. As it parses ascii characters from the tex file it moves around in these states. Can we not interrupt or change the direction and/or state it is in? |
|
Sep 18 |
comment |
Consume/absorb a token @HeikoOberdiek YES, that's I understand that. Ignore that example. What about the first case!!! \InsertToken{\}mymacro |
|
Sep 18 |
comment |
Consume/absorb a token @HeikoOberdiek Ok, for hte second one I can see that tex will try to expand \mym before \InsertToken. BUT surely for the first case it will expand `\InsertToken{\} first everything should be ok? |
|
Sep 17 |
comment |
Consume/absorb a token @BrunoLeFloch Well, How bout you post some code for \InsertToken so I can do \InsertToken{\}mymacro which would be equivalent to \mymacro? Or even \mym\InsertToken{a}cro |
|
Sep 17 |
awarded | Nice Question |
|
Sep 17 |
comment |
Consume/absorb a token @BrunoLeFloch I'm not sure what you mean. Suppose I remove A using Heiko's code and I want to insert it right back(as if I never removed it)... will your code do that? Obviously, I would just use ifnextchar for the same behavior but that isn't the point. The point about changing cat codes was simply so one could easily insert a special token like \!inserttoken{\} would insert a ` into the stream without throwing an error BUT ` would have the catcode that was used before the macro call. |
|
Sep 17 |
comment |
Consume/absorb a token Thanks. Could you also include the opposite, insert a single char using the current catcodes(But redefine them locally to get things to work) for completeness if it is not too difficult? |
|
Sep 17 |
accepted | Consume/absorb a token |
|
Sep 16 |
asked | Consume/absorb a token |
|
Sep 14 |
comment |
How to center one node exactly between two others with TikZ? The code was only hypothetical. Not meant to be working code(just enough to get the point across). Anyways, your method works. Thanks. |
|
Sep 14 |
accepted | How to center one node exactly between two others with TikZ? |
|
Sep 14 |
asked | How to center one node exactly between two others with TikZ? |
|
Sep 14 |
comment |
ignoring chapter easily and I was also able to plug in play into my project without having modify anything but insert the \includeonly macro! Just what I wanted! |
|
Sep 14 |
comment |
ignoring chapter easily That looks like it does the job! I really appreciate it. It makes it very easy to remove chapters if necessary. |
|
Sep 14 |
comment |
ignoring chapter easily If using \iffalse and \fi are complicated you can chose just to ignore all the chapter tokens. There is no real reason to use \iffalse and \fi if using macros. I used them because it is required, or some variant, when having to do it by hand. |