« first day (1568 days earlier)      last day (3374 days later) » 
00:00 - 17:0017:00 - 00:00

5:02 PM
1
Q: Fixing indentation (and line breaks)

paul23In our style guidelines we have basically this "rule": Each paragraph that followed another paragraph shall start with an indentation. Except when there is whitespace above - then there shall be no indentation. In this case for whitespace anything is meant apart from a standard paragraph. So al...

 
@DavidCarlisle Thanks, voted.
 
@PauloCereda true but if you say it loud enough you'll always sound precocious.
 
@DavidCarlisle :)
@DavidCarlisle, @egreg: ^^ overfull hbox. :)
 
@ChristianHupfer Where did you find the class so quickly? MNRAS
 
@Johannes_B: CTAN ... and I've downloaded it for another answer some time ago... you know, my super sophisticated StackExchange folder on my computer :-P
 
5:13 PM
@ChristianHupfer Everything landing in the same folder here. goLaTeX, LC, Texwelt, mrunix, TeX.SX sometimes mailing lists ...
ls -la *.tex | wc -l
2357
 
@Johannes_B: Just one platform... that's enough for me.... There is nothing than TeX.SX :-P
@Johannes_B: You beat me ... Only 1249 *.tex files :D
 
@ChristianHupfer i have twice that, but on 5 different sites.
@ChristianHupfer So, you win.
 
@Maïeul hmm perhaps that wasn't quite right:
[53436] [53437] [53438] [53439] [53440] [53441] [53442] [53443] [53444]
[53445] [53446] [53447] [53448]
! Interruption.
<to be read again>
                   \setbox
l.69 \end{document}

? </usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></
usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
Output written on ff399.pdf (53448 pages, 9418513 bytes).
 
my example or you solution=
I also obtained that
(stop before!)
 
@Maïeul my solution:-)
 
5:17 PM
@Johannes_B: Anyway, the mn2e.cls file is quite old, from 2001
 
@DavidCarlisle I am happy that a brilliant specialist of (La)TeX has same problem :-)
 
@ChristianHupfer Saw that, it is also on sharelatex. Now my question, what does the OP mean by Font and look of equations? Is there anything special?
 
@Maïeul I'm tempted to answer with the Jill Knuth quote and call it done:-)
 
rho :)
 
@Johannes_B: From the guide *.pdf to that class file I would say no... looks like standard cm fonts
 
5:20 PM
@ChristianHupfer Even if not, in which way could the copyright of the class file prevent using a font?
@ChristianHupfer If the journal isn't owner/licenser of the font.
 
@Johannes_B: The font is a secondary issue, but equation formatting?
 
@ChristianHupfer What does equation formatting mean here? Does he want to have serif math?
That would clearly be a duplicaate?
 
@Johannes_B: The question is unclear, in my point of view. I am just looking into the class
 
@PauloCereda I can even write Constantinopolitanischerdudelsackpfeifenmachergesellschafft
 
@egreg Oh my!
 
5:24 PM
@Johannes_B: The class file just uses only 3 packages (graphicx, dcolumn and natbib), all the rest is done without LoadClass... the long hard way
 
@ChristianHupfer shame about the third
 
% ****************************************
%
% FLEQN DOCUMENT-STYLE OPTION - released 9 March 1987
% for LaTeX version 2.09
% Copyright (C) 1987 by Leslie Lamport
%
% The following commands make the displayed math environments flush left,
% with an indentation of \mathindent from the prevailing left margin.

\def\[{\relax\ifmmode\@badmath\else\begin{trivlist}\item[]\leavevmode
\hbox to\linewidth\bgroup$
\displaystyle
\hskip\mathindent\bgroup\fi}

\def\]{\relax\ifmmode \egroup $\hfil
\egroup \end{trivlist}\else \@badmath \fi}
@Johannes_B: That's for equation style ... ;-)
@egreg: Konstantinopolitanischedudelsackpfeifenmachergesellschaft ;-)
@PauloCereda: I can even correct @egreg's spelling ;-)
 
@ChristianHupfer I have fleqn.clo dated 1998
 
@Johannes_B: Me too...
 
@ChristianHupfer Is it a lack of knowledge, a simple wtf do i care? or just laziness? Which sane mind would do something like this? i.stack.imgur.com/bf6lH.jpg
 
5:39 PM
@Johannes_B: What's that? A screenshot of some code?
 
@ChristianHupfer listings !breaklines tex.stackexchange.com/questions/227820/…
 
@Johannes_B too dummy to use a computer? :)
 
@PauloCereda I dunno.
:-)
 
@Johannes_B: I am confused.... @PauloCereda: The liver guy confused me ...
 
@ChristianHupfer I can confuse quite easy these days :-p Is the reason on my or your side?
 
5:42 PM
@ChristianHupfer Das Banana!
 
@PauloCereda: Das böse Ente :-P
 
@ChristianHupfer Oh nein! :)
 
@ChristianHupfer My version is correct according to Mark Twain. Germans may have different ideas. :)
 
5:58 PM
@egreg: Mark Twain (Samuel Clemens) was an American... not a German...
 
6:18 PM
@Maïeul on your hbox footnotes question, I think you asked it in a better form here with some context, just asking for a different way to generate the same thing isn't likely to motivate any real answers. I could insert \relax and it would be different but not what you want...
 
@egreg Got a Q to dupe at hand? tex.stackexchange.com/questions/186541/…
 
hum, i will try to add more context
@DavidCarlisle is clearer now?
0
Q: plain TeX and paragraphed notes

MaïeulThe TeXbook propose, p. 398sq, a system to obtain paragraphed note. That is, instead to obtain Footnote. Footnote. Footnote obtain : Footnote 2. Footnote 3. Footnote. In the same paragraph. This system is used by some package like footmisc and eledmac. As maintener ...

 
@egreg Sounds like a good one. :-)
 
@Johannes_B Done (with my superpowers!)
 
6:30 PM
@Maïeul yes makes the question harder though:-)
 
@DavidCarlisle that is 2 year I am blocking on these 2 questions.
 
@egreg :-) I haven't run out of close votes
 
What would a reasonable approach to make a list of comma separated strings unique? Sort them, then remove adjacent elements?
 
for the first, I have a pist, which consist to split the longnotes before inserting them, but it's dirty
 
@FaheemMitha expl3: \clist_remove_duplicates:N?
 
6:31 PM
for the other one :(
 
@JosephWright Wow.
Usage example?
what package is this in?
 
@Maïeul we could add it to the wish list for the latex3 xor output routine..
 
Ah, expl3 I guess.
 
\documentclass{article}
\usepackage{expl3}
\ExplSyntaxOn
\clist_set:Nn \l_tmpa_clist { a , a , b , c , d , a , d }
\clist_remove_duplicates:N \l_tmpa_clist
\clist_show:N \l_tmpa_clist
 
@DavidCarlisle that will be great !
@DavidCarlisle but for the present case, for the first problem, I will keep the dirty way to publish in eledpar, except if someone find other way...
 
6:35 PM
@Maïeul xor has been in development for over 20 years,and it's not finished yet, so that might not be the quickest rout to a working solution:-)
 
yes I think :)
so, too much LaTeX for today. Now, Harry Potter (and tomorrow, thesis!)
 
@JosephWright thanks
That interfaces3 manual could use some examples, imo
 
6:59 PM
@FaheemMitha It's meant as a reference manual
 
@karlkoeller Moved to here. Sure he/she wants Appendix and then the usual chaptertitle?
 
yo'
7:44 PM
@JosephWright haha, \clist_remove_duplicates:N is one of the bestest macros out there in L3 :)
 
@Johannes_B I've answered the question.
 
@karlkoeller Oh, that looks odd ;-) +1 And a big thanks
 
@Johannes_B It looks awful.... but if she/he wants such a horrible typography....
 
@karlkoeller The confusion will go on with the next chapter. I cannot imagine that anybody would really want that, but then again, i have seen some strange rewuirements, so possible at all. :-)
 
8:26 PM
@JosephWright Examples are always good. I assume \seq_show:N is meant for interactive use? It doesn't print anything to a file.
Though I'm not familar with expl3. That's the LaTeX 3 interface, right?
 
8:50 PM
I don't understand this expl3 convention:
N and n These mean no manipulation, of a single token for N and of a set of tokens given in braces for n. Both pass the argument through exactly as given. Usually, if you
use a single token for an n argument, all will be well.
 
@yo' There's a LaTeX2e macro to do the same, but it's a bit odd
 
This is the sort of place where an example would be useful. I'm trying to intialize with:
 
@FaheemMitha That's in expl3.pdf
 
\clist_set:Nn \l_tmpb_clist \ReferencedIDs
but that doesn't work.
 
yo'
@FaheemMitha \clist_set:NV is what you're looking for
 
8:52 PM
@FaheemMitha Yes is does, but probably you meant \clist_set:NV
 
@JosephWright ok
@JosephWright ok. looking. Thanks.
 
@FaheemMitha No expansion takes place, so you store exactly the token \ReferencedIDs
 
@ChristianHupfer Just realized, that i am doing some serious crazy moves because of the EDM i am listening to ... wearing a Black sabbath Shirt. Only a few guys on earth can do it :-p
 
@JosephWright That works, thanks. I also noticed that no newlines are inserted after these commands, for some reason.
 
@FaheemMitha In the code environment spaces are ignored: it's very specifically meant for code, not typesetting
 
8:58 PM
@JosephWright oh
@JosephWright still unclear what the clist_show is for.
 
@FaheemMitha All of the show functions are for interactive work, showing the content of a variable in the log/terminal
 
@JosephWright Yes, that's what I thought.
 
@FaheemMitha Same idea as the TeX \show primitive, but we add some code to get better formatting
 
@JosephWright Is that a common thing to do?
I just typeset the code.
 
@FaheemMitha Depends what you are up to ;-)
 
9:08 PM
@JosephWright ok
 
@FaheemMitha For development work looking at the content of variables is useful, so we have a full set of show helpers
 
@JosephWright Oh. How do you recommend doing newlines in this context?
 
@FaheemMitha I don't understand: why would you need newlines?
 
Ok, here is an example.
Never mind, my question does not make sense.
@JosephWright my list started which a comma, which seems to have disappeared. Does that macro remove it?
 
9:25 PM
@FaheemMitha An expl3 comma list will be normalised: no empty entries, no spaces at start/end of entries
 
@JosephWright Ok, that's good. Thanks.
 
9:39 PM
Notice in the xstring doc, the following example is given:
\StrCut{abracadabra}{a}\csA\csB |\csA|\csB|\par
Usage is defined as:
StrCut〈[*]〉[〈number〉]{〈string〉}{〈stringA〉}{〈macroA〉}{〈macroB〉}
But MacroA and MacroB are not surrounded by curly brackets here.
@JosephWright do you have notes on implementation outside the source code? Specifically, about the dupe function?
 
yo'
@JosephWright I suppose that \pm in an S-column behaves strangely on purpose?
 
@yo' Example?
 
yo'
mmnt
 
@FaheemMitha Not really: the entire point is we are supposed to document behaviours so people don't have to read the sources to know what to expect
 
yo'
\documentclass{article}

\usepackage{siunitx}

\begin{document}

\begin{tabular}{cS}
Test & {Test} \\
Test & 34 \pm 4.87 \\
Test & 65.87
\end{tabular}

\end{document}
 
9:46 PM
@FaheemMitha We want to avoid the idea that people rely on a particular implementation: it's the documented behaviour we keep consistent
@yo' What's wrong with that?
 
yo'
@JosephWright well, I doubt people understand what it does mean ;)
 
@JosephWright Ok, I was just curious about what algorithm was being used - efficiency issues, basically.
 
@yo' I can't help your input: 34 \pm 4.87 is much more realistically 34 \pm 5 but the conversion to bracket form is correct
@FaheemMitha That really is implementation, so the code docs are the right place to cover it
 
yo'
@JosephWright I don't say it's not, it'll only be rejected by the authors in the proofs ;) well, let's try it :D
 
@JosephWright And the code docs are which one in this case?
 
9:49 PM
@yo' My wider point is that this is not unique to the column form: you get the same with any siunitx processing
 
yo'
ah ok, I didn't know that
well, I'll deal with it without siunitx I think
 
@FaheemMitha texdoc source3, page 409. There's no real trick to this, I'm afraid
@yo' separate-uncertainty?
 
yo'
(I basically use the package only for tables, because changing everything to the siunitx would be sooo much work that I'm not paid for)
@JosephWright ah thanks
good
now I only need to hack the package because of the missing "." that Czech authors seem to prefer not to have there
oh no! it adds a zero after the dot!
I think I just need to read the documentation :D
 
@yo' dcolumn is a lot less fussy:-)
 
yo'
@DavidCarlisle but throws arrows on me no matter what I do :-/ also, can you center-align text to the column if the text is longer than the numbers?
 
9:57 PM
@yo' D..{5.5} {just make the numbers big enough, it doesn't really care) by choosing appropriate numbers you make the column as wide as you like with the . at whatever position you like
 
yo'
@DavidCarlisle imprecisions imprecisions :p
ok, it seems that I managed to molest D to do what I need. Thanks, @David and @Joseph
 
Hello everyone!
I hope someone can help me, I'm so confused right now…
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand\nroot[2]{%
  \mathpalette\@nroot{{#1}{#2}}%
}

\newcommand\@nroot[2]{%
  \@@nroot{#1}#2%
}

\newcommand\@@nroot[3]{%
  \setbox\z@=\hbox{$\m@th#1#3$}%
  \dp\z@=\z@%
  \sqrt[#2]{\mathstrut\box\z@\mskip2mu}%
}
\makeatother
\begin{document}
$\nroot{n}{xy} = \nroot{n}{x} \cdot \nroot{n}{y}$
\begin{align*}
  \nroot{n}{xy} &= \nroot{n}{ x} \cdot \nroot{n}{y}
\end{align*}
\end{document}
The macro \nroot works in align* but not in normal inline mode $…$. I don't understand why.
It works if I put \displaystyle in the inline mode.
 
yo'
10:16 PM
@HenriMenke you can't use boxes really inside \mathpalette
 
@yo' But \smash does that too and it works.
\def\smash{%
  \relax % \relax, in case this comes first in \halign
  \ifmmode
    \expandafter\mathpalette\expandafter\mathsm@sh
  \else
    \expandafter\makesm@sh
  \fi}
\def\makesm@sh#1{%
  \setbox\z@\hbox{\color@begingroup#1\color@endgroup}\finsm@sh}
\def\mathsm@sh#1#2{%
  \setbox\z@\hbox{$\m@th#1{#2}$}\finsm@sh}
\def\finsm@sh{\ht\z@\z@ \dp\z@\z@ \box\z@}
 
Hi y'all
 
@yo' This is from latex.ltx
 
yo'
@HenriMenke don't ask me why, but this works:
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand\nroot[2]{%
  \mathpalette\@nroot{{#1}{#2}}%
}

\newcommand\@nroot[2]{%
  \@@nroot{#1}#2%
}

\newcommand\@@nroot[3]{{%
%  \setbox\z@=\hbox{$\m@th#1#3$}%
%  \dp\z@=\z@%
  \sqrt[#2]{\mathstrut\hbox{\smash[b]{$\m@th#1#3$}}\mskip2mu}%
}}
\makeatother
\begin{document}
$\nroot{n}{xy} = \nroot{n}{x} \cdot \nroot{n}{y}$
\begin{align*}
  \nroot{n}{xy} &= \nroot{n}{ x} \cdot \nroot{n}{y}
\end{align*}
\end{document}
 
I've got a weird little thing happening in a document I'm trying to edit, and I can't seem to figure out what's wrong
 
10:19 PM
@yo' Maybe @DavidCarlisle or @egreg can shed light into this.
 
yo'
I suppose that hiding the box inside the \hbox is the key, but I dunno exactly, @egreg could give you a better insight
@Danu happens quite often ;)
 
What's happening is that it appears that the text of the document is shifted vertically relative to the pages
@yo' Sadly :P
as in this
 
yo'
seems like a page geometry problem. It's as always: no MWE, no possible help.
 
Minimal working example would be:

\documentclass[DIV=11,twoside=semi]{scrartcl}
\usepackage[automark]{scrlayer-scrpage}
\usepackage[english]{babel}
\begin{document}
hello
\end{document}
(sorry if there are still some superfluous things in there: I didn't create the preamble etc. for this document, and I just removed everything in there except the things that gave me errors when removed)
 
hi all :)
0
Q: Table - APA6 class - rotating (with caption and table notes)

JensI am trying to rotate this table with its caption and its table notes in APA6 class. I want to keep the default settings (table goes to the end of paper). In my earlier approaches, I managed to turn the table (+ caption, + table notes) with landscape, but it breaks the settings and my table is ...

anyone? :)
 
10:28 PM
Could it be due to the scr-type stuff? I've never used that before
 
yo'
@Danu looks normal with me. Are you sure that you don't use dvipdfm or dvips wiith incorrect page size settings?
 
@yo' I'm using a totally fresh installation of texstudio (I installed it fresh because I thought TeXMaker was messing with me on this issue). Could it be that something's wrong with the out-of-the-box settings?
Or, alternatively, where can I check?
 
@HenriMenke You're doing \box\z@ that empties the box. Why don't you simply use \smash?
 
yo'
@Danu how can I know?
@Danu try to compile from the shell with pdflatex ?
 
@egreg Now I do, after @yo' pointed it out. I thought that \smash sets the height to zero but apparently the [b] option avoids that.
 
10:34 PM
@yo' Damn, that worked!
 
@HenriMenke This does exactly what you want:
\documentclass{article}
\usepackage{amsmath}
\newcommand\nroot[2]{\sqrt[#1]{\mathstrut\smash[b]{#2}}}
\begin{document}
$\nroot{n}{xy} = \nroot{n}{x} \cdot \nroot{n}{y}_{\nroot{n}{y}_{\nroot{n}{y}}}$
\begin{align*}
  \nroot{n}{xy} &= \nroot{n}{ x} \cdot \nroot{n}{y}
\end{align*}
\end{document}
 
@yo' (I'm pretty much a total computer n00b, so I wasn't entirely sure what that meant, but I just ran the simply 'compile' thing in texstudio which is set to pdflatex, and that fixed it)
 
yo'
@Danu so here you go. Now you have to figure out why/that TeXstudio sucks
ah ok
 
@HenriMenke On the other hand, just \mathstrut is sufficient.
 
@yo' Hmm... okay. Maybe I'll try to reinstall again, deleting my preferences and stuff during de-installation?
 
yo'
10:37 PM
@Danu well, you want to use pdflatex, so if you managed to do so in texstudio, then you're fine, no?
 
@egreg In reality this is an XY-problem, because in \nroot{n}{xy} the radical sign is extended in displaystyle due to the letter y going below the baseline whereas in textstyle the sign is not extended. I thought it would be a good idea to just \smash the part under the radical sign but when you now type \nroot{n}{\int} it looks weird.
 
@yo' Yeah, fair enough. Should I change my "build & view" button (this is how I usually compile my documents) to something different? It is set to dvi-ps-pdf chain right now
 
yo'
@Danu that's bad. If you don't use PSTricks nor EPS or PS figures, you certainly want pdflatex
 
@yo' I think that I set it to this at some point in order to be able to use the feynmp package
 
yo'
@Danu ah I see. I didn't know that this package doesn't support PDF
 
10:41 PM
(which makes .mp files of feynman diagrams)
@yo' I'm not sure it was even the correct thing to do to begin with: I got a friend of mine to help me when I was learning how to use the package, and he recommended this.
So, is there any other setting that you do recommend?
 
yo'
@Danu I have never used the package. Have you tried if it works with pdflatex?
 
@HenriMenke on what (or is it sorted now)?
 
@yo' I haven't. However, I'm okay with changing my settings anyways (at least for now). TeXStudio gives a few options for the "compile & view" button
 
@ChristianHupfer Just the hypothesis/test I did on some question (I think it was about the date not showing up when \date was issued right before \maketitle, but this was because it was being eaten up. It was unnecessary noise :)
 
 
yo'
10:50 PM
@DavidCarlisle later than @egreg, as always
 
@yo' should probably work, the graphics package can include mp files (some code I stole from context:-)
 
yo'
@Danu pdf-chain seems to be your choice to go
 
@HenriMenke For simple sums of radicals it's good; not for other purposes.
 
@yo' I wasn't here:-)
 
@DavidCarlisle Excuses. ;-)
 
10:51 PM
@yo' Oh, this is not a subset of dvi-ps-pdf chain? Misleading names :\
 
yo'
@Danu no, it is not. Indeed
 
@SeanAllred: ;-)
 
Can somebody please remind me how can I look for unanswered questions for a specific tag?
 
@yo' Okay. Thanks a ton for your help!
 
yo'
@Danu you're welcome
 
10:53 PM
@GonzaloMedina go to tags then that tag then the unanswered button on the right
 
@DavidCarlisle your favorite tag, right? :-)
 
@DavidCarlisle and @PaulGessler Thanks. Is there any way I can get the resulting list ordered by some criteria (date, for example?)
 
@GonzaloMedina hmmm, not in that view, I don't think. It's ordered by votes there, with no way to change it.
@GonzaloMedina with this URL format you can do it :-) : tex.stackexchange.com/unanswered/tagged/tikz-pgf
 
10:58 PM
@PaulGessler actually given my expertise I'm surprised that there are any questions left in that list.
2
 
@PaulGessler Ah, that's really helpful. Thanks again.
 
Run out of close votes :-(((((
 
@GonzaloMedina don't answer too many questions, rep cap means getting 315 to catch up is tricky enough as it is:-)
 
@ChristianHupfer just 1 hr to go, surely you'll survive. :-D
 
@PaulGessler: No.... must ... vote .... for ... close ... those voices... in... my head... force me ... to vote... for close
 
11:03 PM
@DavidCarlisle definitely none left in , you've handled all of those nicely.
 
@PaulGessler that probably explains it.
 
More than a year since clarification was asked and no response from the OP. I think it could be closed:
1
Q: Eliminate page number in Beamer

MaribelI'm a new beamer user and after days I finally chose ea theme I like, but it has number pages included and I don't want them to be shown... Does anybody know haw to eliminate the page numbers in a Beamer presentation if the theme you have selected uses them by default??

 
11:47 PM
If someone still has a vote left for this answer (to remove the question from the unanswered list), I'd appreciate it:
3
Q: Modifying enumerate items in beamer - insert graphics while generating labels

Yu-Ho HaeppoelaeI'm trying to make myself a beamer template with modified bullets for enumerate and itemize. I have a pdf image of the bullet point that I would like to use. I already have a working solution for itemize, but using the same approach \newcommand{\bpebble}[0]{\includegraphics[height=1.3 ex]{./k_bl...

 
00:00 - 17:0017:00 - 00:00

« first day (1568 days earlier)      last day (3374 days later) »