« first day (1352 days earlier)      last day (3583 days later) » 

4:12 AM
any latex parsing expert around?
I have a latex output generated from Mathematica, in which it inderts $..$ inside an equation.  But Latex does not like this. For example it generates
\left(\text{$\#$1}^3+\text{a2} \text{$\#$1}^2+\text{a1} etc..... and so when I copy this to a latex file and add   \begin{align} .... \end{align} around the above, Latex complains about those $$ signs inside. Is there a way to have $$ inside equations?
The above might be a Mathematica issue. Will try to ask about it in the Mathematica forum.
 
 
1 hour later…
5:32 AM
Ok, I resolved the above issue. It was with Mathematica output, I corrected my code. case closed.
 
5:54 AM
@JosephWright The daily spammer: tex.stackexchange.com/users/59055/ling
 
@HeikoOberdiek Zapped
 
 
3 hours later…
8:36 AM
@egreg I guess i was more of a hypocrit than a good german last night.
@egreg I was at the bar drinking lots of beer, but i really didn't care for the game.
 
@JosephWright typos, thanks:-)
 
@DavidCarlisle No probs
 
@JosephWright I'm not sure that's quite the answer the OP wants (I just answered the question in the title as I didn't understand most of the question text)
 
@DavidCarlisle Possibly not: the concepts required are all quite low-level
 
@JosephWright The high level answer is "commands that generate an error are not allowed"
 
8:52 AM
@DavidCarlisle :-)
 
****
 
@Johannes_B The game was, at least, a very good excuse for drinking some beer. ;-)
 
@egreg I was a bit confused. Only about ten people (out of 80/90?) were standing up for the national anthem.
@egreg And it was some beer.
 
9:55 AM
@topskip ooh a password! :)
@Heiko: so you guys are champions! :)
 
@PauloCereda That was really hard work ;-)
 
@topskip :)
 
(sitting in the rain and watching the match while holding the glass of beer)
 
@topskip And then singing in the rain
 
@egreg ooh! :) What a glorious feeling!
Meanwhile, in the cricket alley...
 
10:09 AM
@egreg: I have no answers of yours to upvote. /sob
 
@PauloCereda my divisional manager just won 6 pounds for the "booby prize" of picking the team that let in the most goals, which was....
 
@DavidCarlisle lalalalala can't hear you lalalalalala
:)
 
@PauloCereda 2nd test starts on Thursday, at Lord's
 
@DavidCarlisle ooh now I learned about it! :)
How many tests are there?
 
@PauloCereda 5 (it is apparently the first time we've given India the "honour" of a full 5 test tour since 1959 bbc.co.uk/news/world-asia-india-28084414
 
10:31 AM
@DavidCarlisle ooh! :)
 
 
1 hour later…
11:53 AM
Oh sadly no one else here
 
@ChristianHupfer me me me me ooooooh me me pick me pick me \o/
 
12:16 PM
@ChristianHupfer Everybody looking for beer, as the Germans drank all what was available yesterday.
 
12:34 PM
can you help me please? i'd like to know how long the leg of this Q is
 
@izabera Are you using XeTeX?
 
actually luatex but it should be the same
 
@izabera Not really; with XeTeX you can access to the “real” bounding box.
 
oh
awww :<
that's too bad
any way to do it with some dark magic in plain tex?
 
@izabera What font is it?
 
12:46 PM
it's adobe caslon pro but i'm looking for a way to compute this value for any font one may choose
 
With XeTeX you can get the distance from the bounding box to the real extension to the right with \the\XeTeXglyphbounds 3 \XeTeXcharglyph`Q; this will be negative, meaning that the tail of the Q extends to the right of the bounding box.
@izabera This might be what you need
8
Q: Accessing side-bearings in LuaTeX

Brent.LongboroughThis question has been solved, in XeTeX, by this code: \def\kright#1{\leavevmode #1\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 } \def\kleft#1{\leavevmode \kern-\XeTeXglyphbounds1 \the\XeTeXcharglyph`#1 #1} which allows me to align text more precisely to the ink by accessing the side-bearin...

 
thank you, it seems a lot harder than i thought
 
@izabera But it works! Save the Lua code in sidebearings.lua and then prepare this file:
\documentclass{article}
\usepackage{fontspec}

\setmainfont{EB Garamond}

\ifdefined \directlua
  \directlua {require "sidebearings"}
  \def \lsidebearing #1{%
    \directlua {packagedata.sidebearings.left [[#1]]}%
  }
  \def \rsidebearing #1{%
    \directlua {packagedata.sidebearings.right [[#1]]}%
  }
\else
  \def \lsidebearing #1{\the \XeTeXglyphbounds 1 \XeTeXcharglyph`#1}
  \def \rsidebearing #1{\the \XeTeXglyphbounds 3 \XeTeXcharglyph`#1}
\fi

\def \test #1{[#1] left: \lsidebearing {#1}, right: \rsidebearing {#1}\par}
If I compile with XeLaTeX I get
With LuaLaTeX I get
 
ah-ha! totally different!
:D
 
The difference is 1 scaled point
 
1:02 PM
it's great, really :)
thank you
 
1:28 PM
Quack.
 
1:56 PM
@PauloCereda you're the developer of arara, aren't you?
it's great. luv it
 
2:43 PM
@izabera /blushes Thank you, we try our best. :)
 
This code latex equation is auto-generated by Mathematica. Anyone knows what this error mean in latex please? MWE
\documentclass[11pt,notitlepage]{article}
\begin{document}
$y'(x)-\frac{y(x)^2+1}{(x+1)^{3/2} \left\left| y(x)+\sqrt{y(x)+1}\right\right| }$
\end{document}
Missing delimiter (. inserted) ...eft\left| y(x)+\sqrt{y(x)+1}\right\right| }
 
3:07 PM
@Nasser You have two extra \left and \right.
 
@Nasser As @AlanMunn says, \left\left is illegal
 
Hello everybody.
Are there any biblatex gurus here?
 
3:23 PM
@HenriMenke Not a guru, but I know a bit...
 
@AlanMunn I'm using biblatex with the natbib option and I want \autocite to default to \citet.
@AlanMunn But there is not such thing as autocite=citet
 
@HenriMenke Yes, I think that's the way it is. The natbib option is kind of an extra thing rather than a core part of biblatex so I doubt that option will be added.
 
3:40 PM
@AlanMunn I figured out, that \citet is just an alias for \textcite. Unfortunately there is no autocite=<style> option that defaults to \textcite. I can define an additional \DeclareAutoCiteCommand{textcite}{\textcite}{\textcites} but I don't know how to select that.
@AlanMunn Is there a macro for late option selection in biblatex? (Like \sisetup for siunitx or \hypersetup for hyperref)
 
@HenriMenke Yes, but it doesn't work for this case:
\DeclareAutoCiteCommand{natbib}{\citet}{\citet}
\ExecuteBibliographyOptions{autocite=natbib}
this yields undefined command \citet when \autocite is executed, but not when \citet itself is executed. I'm not quite sure why.
I think it's because of the way that the compatibility macros are defined.
 
@AlanMunn Doesn't matter
\DeclareAutoCiteCommand{textcite}{\textcite}{\textcite}
\ExecuteBibliographyOptions{autocite=textcite}
works just fine!
@AlanMunn Thank you very much!
 
3:55 PM
@HenriMenke You're welcome. I was about to suggest that (since that's basically what \citet is defined as).
@HenriMenke Now reading your messages a bit more carefully, you were already trying to do that... Anyway, glad I could help a bit.
 
 
1 hour later…
5:00 PM
I kept getting memory insufficiency errors when trying to compile some big pgfplots. At first it was main memory that was too small. I changed the relevant config file and ran fmtutil-sys (for some reason it took me 3 or 4 times doing this and running fmtutil before this accepted the new memory size) and now it tells me the buffer is too small. So I changed the buffer but it keeps telling me the buffer is the old size... I've been at this for two hours now, and am four days older for it.
 
5:19 PM
@bjorne Have you tried compiling with lualatex?
 
5:31 PM
Nope, everything fails when I try compile with lualatex.
Thanks for trying, I'll keep pulling my hair out and come back when I am again in despair in a few hours.
 
5:49 PM
@PauloCereda: A moderator killed my meta-spanish-inquisition tag. And I was so proud of it :(
 
6:38 PM
can you please explain what's going on here?
\documentclass{article}

\begin{document}
\newlength{\myl}

Q
\settoheight{\myl}{Q}
height=\the\myl
\settodepth{\myl}{Q}
depth=\the\myl
\settowidth{\myl}{Q}
width=\the\myl

\begin{table}[h]
\begin{tabular}{ll}
\settoheight{\myl}{Q} height &\the\myl \\
\settodepth{\myl}{Q}  depth  &\the\myl \\
\settowidth{\myl}{Q}  width  &\the\myl \\
\end{tabular}
\end{table}
\end{document}
 
@izabera you get the last setting of the width because tabulars are processed column-wise, not row-wise. Move the \setto<...> commands into the cells where you use the lengths and the behaviour is correct.
 
@PaulGessler thanks!
@PaulGessler i moved the \settoheight to the right and left \settodepth and \settowidth to the left
it correctly shows height 6.83331pt, but it's still showing depth 7.7778pt and width 7.7778pt
 
@PaulGessler That's wrong. The real problem is that tabular cells form groups and the assignments are forgotten when the cell ends
\documentclass{article}
\begin{document}

1.
\begin{tabular}{ll}
               & \foo \\
 \def\foo{bar} &
\end{tabular}

2.
\begin{tabular}{ll}
 \def\foo{bar} & \foo
\end{tabular}

3.
\begin{tabular}{ll}
 \gdef\foo{bar} & \foo
\end{tabular}

\end{document}
only the last one works
 
@cgnieder what makes the last one "stick" in izabera's original example?
 
@PaulGessler the assignments before the table
 
6:51 PM
Aha! Totally missed that. Thanks for the lesson!
 
and why does this show height 6.83331pt depth 7.7778pt width 7.7778pt ?
                      height & \settoheight{\myl}{Q} \the\myl \\
\settodepth{\myl}{Q}  depth  &                       \the\myl \\
\settowidth{\myl}{Q}  width  &                       \the\myl \\
it's still after the assignments before the table
 
@izabera same reason; the group has ended so the assignment is forgotten.
 
@izabera because what I said before:
3 mins ago, by cgnieder
@PaulGessler That's wrong. The real problem is that tabular cells form groups and the assignments are forgotten when the cell ends
 
ok got it
thank you :)
 
7:04 PM
Is it possible to use unicode character in PostScript? For example: \pstVerb{/π {3.141592654} def}.
 
@Pleasedon'ttouch What is the unicode in that expression?
 
@bjorne How does it fail? (By the way, if you place the mouse cursor over a chat message, you'll see an arrow pointing down-right on the right hand side. Click that to reply to a message, like I've done here. The user will then be notified of your reply. You can also use @username to ping a user.) You could also consider asking a question on the main site.
 
@percusse π (ALT+227) which is Pi.
 
@Pleasedon'ttouch ow that's pretty much n on my screen, sorry
 
Θ theta for better visual appearance.
 
7:10 PM
@Pleasedon'ttouch I really doubt that is possible.
but hey it's PS so you never know
 
If it is possible, then I want to change any Pi to π such that the code looks more natural.
 
@Pleasedon'ttouch It doesn't look natural at all for my taste, but if you find it better, that's what it is.
Did it give an error when you defined it?
 
@percusse GhostScript error.
 
@Pleasedon'ttouch So, no then
 
@percusse: sir, there's a meta question waiting for you to be ballistic and release the hounds. :)
 
7:19 PM
@percusse I will ask in the main site. :-)
 
@PauloCereda I'm tired already from this SO nonsense.
 
@ChristianHupfer Any link?
@percusse Oh no. :(
@Christian: maybe it was tag review that rejected the tag.
:)
 
Them get no forks without commitment.
if you know what i mean
 
@percusse :P
 
7:46 PM
@PauloCereda: No, it was that 'strange' meta question from yesterday, and I remembered our jokes from last night, so I thought, it would be 'funny', so I used that tag. Martin Scharrer edited the post and removed also my tag. Well, I knew, it would not last very long ;-)
 
@ChristianHupfer Well, that question was too sensitive perhaps, so maybe another question would be a better choice. :)
 
@PauloCereda: That's true. Perhaps all participant put too much effort in it.
 
@ChristianHupfer Sometimes I'm a bad influence, I admit that. :)
 
@PauloCereda only sometimes?
 
@PauloCereda: No, I like that :D
 
7:51 PM
@DavidCarlisle Yep. :)
 
@PauloCereda: No, I meant, that the participants, including me, of that, say, 'discussion' on meta were too earnest about, but on the other hand, the behaviour of the OP was annoying finally.
But it is not the right place to start a discussion on that here.
 
@ChristianHupfer :)
 
@PauloCereda: Hm???
 
8:12 PM
@ChristianHupfer wut?
:)
@StephanLehmke: congrats!
 
@PauloCereda: No, no 'wut' :D You know some German?
 
@ChristianHupfer nur ein bisschen Deutsche. :)
The teacher was a cute girl, so I was accidentally in class. :)
 
@PauloCereda: Accidentally of course ;-)
 
@ChristianHupfer The universe is to blame. :)
 
@PauloCereda: As always ;-)
Bye, good night or good morning, whereever you are ;-)
 
8:36 PM
@ChristianHupfer Good afternoon! :)
@David: I have an evil plan for a possible Christmas tree. :) You could draw it with picture mode. :)
 
8:48 PM
@PauloCereda You mean on the world cup? I didn't do anything about it :-)
 
@StephanLehmke You guys have Angela Merkel, and I saw her kissing the players in the final ceremony. That's a bravery act. :)
 
Well, honestly, from what I saw they deserve it. It didn't look like the real champion was thrown out unfairly or by horrible bad luck.
 
Meanwhile, Dilma got booed all the ceremony and she handed the cup as fast as she could. :)
@StephanLehmke It was surely well deserved. :)
 
@PauloCereda I wonder who voted for her. ;-)
 
@egreg Don't you look at me. :)
 
8:55 PM
@PauloCereda Judging from the boos, nobody did. It must be like here, where “nobody” voted for Mr B.
 
@egreg Ouch. :(
@Stephan: lots of fireworks? :) Everybody in Brazil was supporting Germany. :)
 
9:16 PM
@TorbjørnT. I get all sorts of encoding errors that I don't get with pdflatex. I've found a way to split things up and cut down on the data to avoid these memory problems for now, so I don't see much advantage in spending extra time making things compile with lualatex. Thanks for your help though!
 
@egreg voting's overrated you should have a supreme monarch
 
9:32 PM
@bjorne No problem. The LuaTeX engine assumes UTF-8 I believe, so if your document uses some other encoding I suppose you could get errors. Also, the inputenc package shouldn't be used.
 
@DavidCarlisle Like your Queen?
@Werner update: 246 to go!
The party is approaching. And we might have another one by the end of next week. ;-)
 
10:10 PM
@egreg ooh cake!
 
 
1 hour later…
11:14 PM
Spam alert!
-2
Q: How do you transform your PC to a security fortress?

user59099So finallytransforming my old Windows Pc to a real PC Targets: 1. Secure 2. Good for Coding Specs are Single-Core 2 Ghz My current List: lightweight Linux Distri??? Tor antivir? (Maybe avast) a Firewall programm? (if not in os) codeblocks for c++ python mozilla Are ...

 
OK, maybe not quite spam... /blush :)
 
@lockstep This question tex.stackexchange.com/q/191076/2693 has stumped me. Perhaps you have a solution?
 
@AlanMunn Yay!
 
11:33 PM
@PauloCereda It's also a vertical palindrome.
4
 
@AlanMunn Very nice!
 
@AlanMunn Isn't the lower round thingy of the 8 glyph bigger than the upper? :P
 
@egreg Yes, it's both mathematically and visually pleasing.
@PauloCereda Well I'm sure I can find a font in which they are equal.
 
@AlanMunn I was thinking the same. :)
 
@AlanMunn Unfortunately, I'm going into apalindromic territory. Unless I downvote some of David's answers, of course.
 
11:35 PM
@AlanMunn You pinged me?
 
@lockstep Alan pressed the button. :)
 
Good night all!
 
Ah ... an unanswered biblatex question.
 
@egreg Buonanotte! :)
 
@lockstep Yes, it seems like it should have a simple solution, but it has totally stumped me. I thought you might have some ideas, since it's a pretty reasonable thing to want to do.
 
11:41 PM
Yay, Wolfram offered me a free upgrade.
 
@PauloCereda Paulo 2.0?
 
@AlanMunn Nah that one is already outdated. :) Mathematica 10 it is. :)
ooh @Harish is here! :)
 

« first day (1352 days earlier)      last day (3583 days later) »