Reputation
1,000
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
6 19
Impact
~16k people reached

Jun
19
awarded  Popular Question
Jun
1
accepted Conditional whitespace in math mode
May
29
revised Change view-command in Emacs and AUCTeX (pdf mode)
Added missing output-file at the end of the command, otherwise evince opens a blank window. Had to reformat a bit too to match 6 characters count
May
29
comment Conditional whitespace in math mode
@egreg I'll accept that as an answer if you post it.
May
29
suggested approved edit on Change view-command in Emacs and AUCTeX (pdf mode)
May
29
comment Conditional whitespace in math mode
@egreg, @Mico I added an example of what I want my command to do. If I understand correctly what you say, what I want isn't possible because the spacing behaviour of \mathbin and co. is hardcoded into TeX, and one can't create similar behaviour with different spacing and conditions. Did I understand correctly?
May
29
revised Conditional whitespace in math mode
Clarification, again.
May
29
comment Conditional whitespace in math mode
@barbarabeeton How would I change the spacing of \mathbin, then? Like, have it output a \quad either side, instead of just a normal math space?
May
29
comment Conditional whitespace in math mode
@Mico I'm trying to mimic their general behaviour, not a specific one. I want to be able to have space or not around a piece of text or character, depending on what's surrounding it. I edited my post for clarification. Please tell me if it's still not clear.
May
29
revised Conditional whitespace in math mode
Clarifications
May
29
asked Conditional whitespace in math mode
May
23
awarded  Yearling
May
20
accepted How to \show the code of the command \autoref?
May
20
revised How to \show the code of the command \autoref?
Is a duplicate.
May
20
comment How to \show the code of the command \autoref?
Neat trick. Using \expandafter\show\csname autoref \endcsname works too.
May
20
asked How to \show the code of the command \autoref?
May
19
comment \phantomsection inside tabular: alignment problems
I have found a solution to my problem, which could be rephrased as putting a hyperref anchor inside a table, and have that anchor be above the line, instead of on the baseline (otherwise clicking on links to that anchor bring the PDF reader at the wrong point, see screenshots). Thanks for helping, anyway!
May
19
comment \phantomsection inside tabular: alignment problems
This is just a MWE showing the problem I have. What I am doing is using a \customlabel{the-label}{the-name} macro I wrote to be able to use \ref{the-label} and have it show the-name, for referencing small parts of a figure or table (on line $a$, we see that… on line $b$, blah blah), but with the safety net that if I rename/renumber/reorder my labels in the table or figure, they will automatically be changed in the paragraphs containing references to them.
May
19
accepted \phantomsection inside tabular: alignment problems
May
19
comment \phantomsection inside tabular: alignment problems
I had just found a solution using \raisebox here, but it aims one line too high when used in a paragraph. Using \leavevmode\vadjust pre{\phantomsection} works well, both inside table, inside paragraph, and at the beginning of a paragraph (thanks to \leavevmode).