« first day (3048 days earlier)      last day (1878 days later) » 

12:09 AM
Hello!!
Someone told me that for producing (mód n) he is using the following: \def\mod#1{\allowbreak\mkern5mu({\rm m\acute od}\,\,#1). Is it the best way to write the accent in this math sign?
For example, in this answer @egreg is changing the native definition of \pmod:
5
A: (mód 1) is not copied correctly

egregThe babel module spanish.ldf redefines \pmod to do m\es@op@ac od and \es@op@ac is essentially \acute (with a correction for i in order to use the dotless i). At the expense of a new math group, you can do \documentclass{article} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{...

 
12:26 AM
@manooooh No, that's not copied correctly.
 
12:54 AM
@AlanMunn Wait! What do you mean by "calls"? Shouldn't it be "marmot poetry and duck sounds" instead?
 
 
3 hours later…
vlg
3:32 AM
the postcards README SUPPORT: not much.
 
 
3 hours later…
6:30 AM
@egreg sorry, a } is missing: \def\mod#1{\allowbreak\mkern5mu({\rm m\acute od}\,\,#1)}. Do you think that this definition is correct?
If not, why loading inputenc and [spanish]{babel} (or use your answer)is the "most" correct way?
P.S. Suppose that we do not need to add amsmath
P.S.2. What about \renewcommand\mod{\,\hbox{mód}\,}?
 
7:21 AM
Can hbox replace text? It seems that both commands are the same, but with the peculiarity that the first does not require the amsmath package
 
8:09 AM
@manooooh \hbox is low-level tex and you should never use it in a document. And both commands are not the same. Try out e.g. in a subscript.
 
@UlrikeFischer oh, I agree with the subscript, thanks! However you write "And", which means that "\hbox is low-level tex and you should never use it in a document" can be another approach. Why do you say "\hbox is low-level tex and you should never use it in a document"?
 
8:21 AM
@manooooh \hbox is TeX not LaTeX. So don't use it.
 
@UlrikeFischer I suppose that some TeX commands are still used in LaTeX. Why, in particular, the use of \hbox should be stopped?
 
61
A: Differentiating between \hbox and \mbox

David Carlisle\hbox is a TeX primitive and \mbox is a LaTeX macro defined via \long\def\mbox#1{\leavevmode\hbox{#1}} The \leavevmode means that it starts a paragraph, compare: \hbox{one} \hbox{two} three with \mbox{one} \mbox{two} three The other difference is that the argument is parsed as a normal m...

 
@UlrikeFischer yes I found that answer before, but we are discussing \hbox versus \text, not \mbox
 
@manooooh You could ask if you can use \mbox instead of \text, but not \hbox versus \text.
 
@UlrikeFischer why can not I ask? Why are they incomparable? Sorry for being very new in this
 
8:32 AM
@manooooh The answer is: no you can't replace \text by \hbox as you shouldn't use \hbox in a document.
 
Ok, thank you!
 
8:46 AM
I just went to play a soccer match. We lost in the penalty shootout :(
 
@JouleV noooooooo! D:. Surely your team and you have another chance on the other date; if you practice more you will do better :). What was the result of the penalty shootout?
 
9:06 AM
@manooooh It is 3-2. Today is a day for the goalkeepers :|
 
9:29 AM
@manooooh No.
 
@AlanMunn sometimes MS sends me emails trying to be funny...
See subject. :)
 
Hi, I was just looking how we cite [1-4] with biber and lualatex today. I found tons of Q-A tex.stackexchange.com/questions/linked/3871?lq=1 but there are even more. Any ideas, how we could sort things better? I am not so sure, if the old answers still reflect how it is done in 2019.
 
9:44 AM
47
A: Citing a range of papers (using numeric keys)?

Will RobertsonThe cite, natbib, and biblatex packages, at least, will all do this. A minimal example which demonstrates the behaviour is: \documentclass{article} \begin{document} hello \cite{article-full,book-full,mastersthesis-full} \bibliographystyle{unsrt} \bibliography{xampl} \end{document} If you h...

@JonasStein ^^ this answer from Will works for me.
Off: what happened to the first ref? LOL
 
@PauloCereda Haha, that is a very uncommon way to cite. Are you using duck.bst?
 
@PauloCereda that's how it is in the bib: author = {L[eslie] A. Aamport},
 
@mickep :) It's the sample database. Now I am actually intrigued, let me check...
@UlrikeFischer aaaaaaaah I was gonna check that right now.
Oh I get the joke... L A Aamport.
@mickep @UlrikeFischer clever people. :)
 
10:07 AM
How would you guys call .c files with a .h file? Is module ok? (I know that this is the TeX.SX chat...)
 
10:24 AM
@Skillmon If this is a pure C context I think you may use module. But if you are mixing C++ in, then beware that C++20 brings "modules" to the table…
 
@TeXnician the only usable subset of C++ is C :)
 
@Skillmon What a strange definition of usable :D
 
 
2 hours later…
12:10 PM
@TeXnician not my own, but quite easy to argument for it.
 
 
3 hours later…
2:40 PM
@PauloCereda As a pun, that's a bit of an 'owler.
 
3:07 PM
I got a new palindrome:
user image
3
 
3:24 PM
@egreg LOL
@AlanMunn ooh
 
4:13 PM
user image
4
 
Assuming there are people here familiar with KOMA, can someone clarify if the following from the manual means what I think it means? Specifically, in ctan.imsc.res.in/macros/latex/contrib/koma-script/doc/…
> In addition to the values in table 2.5, you can also use the value semi. This value results in two-sided printing with one-sided margins and one-sided, that is non-alternating, marginal v3.12 notes.
Does that mean that the margin spacings in twoside=semi as the same as the margin spacings for the default one sided setting? I'm specifically concerned with scrlttr2, but I'm asking more generally.
 
Hi. How do I post text here?
I've a table and I'm not sure how to center it on the page
First time using LaTeX
 
@VioAriton Just put \centering before your \begin{tabular} (assuming the table is inside a \begin{table} ... \end{table} environment.) If it's not, then use \begin{center}\begin{tabular}...\end{tabular}\end{center} instead.
@VioAriton Also, if you haven't seen this, it might be helpful. tex.stackexchange.com/q/11/2693
 
4:32 PM
I have tried
It doesn't seem to work
I've also tried without using table and just surround it with { \centering \begin{tabular} ... \end{tabular} }
 
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{ll}
A table & that is centred \\
A table & that is centred
\end{tabular}
\end{table}

\begin{center}
\begin{tabular}{ll}
A table & that is centred \\
A table & that is centred
\end{tabular}
\end{center}
\end{document}
@VioAriton ^^^ The first way is appropriate if your table needs a caption and you want LaTeX to place it in the best position relative to the rest of the the text and should be listed in a list of tables. The second way is more appropriate if the table is to be in a fixed position without a listing entry.
 
I see.
I've got this
\begin{tabular}{| c | l | l | l |l|}
\multirow{4}{*}{$\lbrace k \in N \mid 0 < k \leq 10^{n} \wedge n \in [2, 3, 4, 5] \rbrace$} & & Bubble & Insertion & Selection \\
& $10^{2}$ & $\sim 0.127ms $ & 1 & 1 \\
& $10^{3}$ & $\sim 12.996ms $ & 1 & 1 \\
& $10^{4}$ & $\sim 1.4s$& 1 & 1 \\
& $10^{5}$ & $\sim 154.4s$ & 1 & 1 \\ \hline
\multirow{3}{*}{$\lbrace k \in Z \mid $ -$1 * 10^{n} < k \leq 10^{n} \wedge n \in [2, 3, 4, 5] \rbrace$}
& $10^{2}$ & $\sim 0.153ms$ms & 1 & 1 \\\
& $10^{3}$ & $\sim 13.428ms $ & 1 & 1 \\
 
4:50 PM
@VioAriton Well depending on your page margins this is too large to fit on the page (e.g. with the default margins, it's 94pt too wide, and you get a warning. )
 
5:08 PM
@FaheemMitha twoside=semi means that headers etc. will be considered different for even and odd pages but the margins are the same at all pages.
 
@TeXnician Yes, but are they the same as the margins for the one sided case?
 
@FaheemMitha A short example document suggests that this is true…
 
@TeXnician Yes, I think so too. But the wording is less than clear.
 
IIRC the English documentation is very inferior when compared to the original (in German).
 
@FaheemMitha Unfortunately, not even the German version is better. But I guess it is a sane assumption.
@PauloCereda Just checked ;)
 
5:15 PM
@TeXnician oopsie. :)
@TeXnician naughty Germans. :)
@Skillmon "potential headache". :)
 
@TeXnician I was going to send an email to KOMA support about something else. I'll add a comment. So the English KOMA documentation is a translation of the German one?
 
@FaheemMitha Have a look at the title page of scrguien ;)
 
@TeXnician Ok
Is it bad practice to define macros in the body of the document? I sometimes do that if I'm only using it once. Then I do it near (or immediately before) I'm using it. Then I don't have to search for the definition.
 
5:31 PM
@FaheemMitha IMHO the answer is the same for GOTO... it depends on the use. :)
 
@PauloCereda Possibly poorly chosen example. GOTO is much reviled.
 
@FaheemMitha not at all.
I am with Don on this. :)
 
@PauloCereda Well, generally.
 
@FaheemMitha you've answered your own question, then. :)
 
@PauloCereda I have?
 
5:36 PM
@FaheemMitha In general, it's probably not advised to define macros, considering some principle of separation of concerns. But if you are sure there will be no harm, you can do as your heart desires, much like GOTO. :)
 
@PauloCereda "not advised to define macros"? Everyone does it all the time.
 
@FaheemMitha in the document body, sorry.
 
@PauloCereda Ah
 
@FaheemMitha and "everyone" is not the case. :) I know people who does not define macros. :)
 
@PauloCereda TeX users? Weird.
 
5:42 PM
@FaheemMitha you are the one wanting to define stuff on the document body and tell others are weird? Weird. :)
 
@PauloCereda No, I mean not using macros is weird.
 
@FaheemMitha Ah. :)
@FaheemMitha I have a friend who is a plain TeX user. His documents only have \bye, pretty much.
 
@PauloCereda Oh
 
6:11 PM
@AlanMunn how would you suggest to structure the table such that It's centered, or the document?
 
6:24 PM
Is there an epidemic of touchiness spreading around, recently?
 
@CarLaTeX ?
 
@UlrikeFischer See last question on Meta
 
6:49 PM
So, the following doesn't work. I guess it's another of those non-robust situations.
\newcommand{\blankpage}(\clearpage \phantom{} \clearpage)
I forget what the prescription for dealing with that is. Except possibly a liberal application of \expandafter.
Or maybe I should use \NewDocumentCommand?
 
@FaheemMitha what do you mean by "doesn't work"? Works fine for me.
 
@UlrikeFischer Oh. Let me recheck.
@UlrikeFischer Sorry, I was being brain-damaged.
 
7:38 PM
tcolorbox seems pretty popular. Is that currently the best choice if one wants to put frames around things? Like text?
 
@FaheemMitha yes.
 
@UlrikeFischer Ok. Thank you.
 
 
2 hours later…
9:54 PM
@CarLaTeX people should just eat more pineapples and relax
 
@DavidCarlisle more luatex questions ;-(
 
@UlrikeFischer you are asking them or answering them?
@UlrikeFischer oh dev-luatex
 
@DavidCarlisle I don't want to answer them - looks like much work.
@DavidCarlisle no I meant on the main site. The guy who put 5 or 6 additional questions in the comment of my call back answer.
 
@UlrikeFischer oh that...
 
@DavidCarlisle and now he is asking a completly unclear question about math in some callback ...
 
10:00 PM
@UlrikeFischer I could look I suppose, which post?
 
0
Q: How to print mathematical object in text mode in lualatex?

Aleksandr KozlovskiyIn one of the callbacks of lualatex in lua (build_filter) i print the first argument of function. \begin{luacode} function f(a) tex.print(a) end luatexbase.add_to_callback("buildpage_filter",f,"build_filter") \end{luacode} But during compiling i get an error: ! Missing $ inserted. <inserted text

 
@UlrikeFischer I answered it (but I suspect it won't be the answer wanted)
 
@DavidCarlisle oh, he literally inserted the argument ;-). I thought that he had some other function somewhere.
 
News from PGF/TikZ: We will move to GitHub soon. Till agreed.
9
or rather I will move it to GitHub soon ;)
 
@JosephWright did you ever see code for "the experimental branch of pdftex that deals with tagging"?
 
10:12 PM
@UlrikeFischer I guess so although I can't actually get that error (it's inserted in some strange place and never actually gets printed
 
@UlrikeFischer No, not seen it
 
@JosephWright I got contacted by a guy who deals with math + tagging and he mentioned that, but I don't know where he got it from (I think Ross has some special pdftex, but I never saw a source somewhere).
 
@DavidCarlisle ah. But is there any new code? It looks as something was started but then nothing more.
 
@UlrikeFischer Not as far as I know.
 
10:40 PM
@DavidCarlisle I think I will ask him, what he meant. But I had to look at this axessibility package again, and that is a nuisance. It breaks accsupp, it creates invalid pdf, it contains load of \makeatletter and I wouldn't bet that it doesn't break amsmath environments.
 
@egreg why?
 
@manooooh For the same reason in your question and my answer about copy-paste.
 
@egreg we mean that the accent is copied badly, right? If so, now suppose we do not need to copy it, are all the commands used to display the accent in the mod command correct?
The code is: \def\mod#1{\allowbreak\mkern5mu({\rm m\acute od}\,\,#1)}
 
@manooooh \rm has been a deprecated command for almost 25 years.
 
@egreg but it is a LaTeX command?
 
10:52 PM
@manooooh No.
 
Oh, ok, thanks!
 
@manooooh Some classes define it, none is required to.
@manooooh By the way, since babel-spanish does that fix (with the correct command in place of \rm), why bother?
 
@egreg because I have been told that a person searched in Internet about the possibility of defining that command and came up with that code. In fact, he does not use babel-spanish because he says he does not need his documents to be copied correctly, but to visualize them in the Spanish language (which is an option and is as valid as worrying about the correct copying of the signs)
 
11:17 PM
@manooooh ouch:-)
 
Lol?
 
yo'
... and after a happy Carnival, I wish you a joyful and meaningful Lent season.
 
11:37 PM
@manooooh Well, if somebody writes a document in Spanish without using babel-spanish, they're on their own. Don't bother with them.
As Dante said: Non ragioniam di lor, ma guarda e passa
 
@egreg I am in contact with a person who has studied and written Logic from Spain that I respect a lot, and does not use those packages, not even inputenc, since he uses Mac and needed other requirements. For example you can see a PDF document of it here: uv.es/ivorra/Libros/Conjuntos2.pdf
@egreg what I am discussing with him (and with you previously) is to discuss whether a mathematician should be very concerned about the style and accessibility of his documents. He tells me no, that since he publishes all his documents he is being accessible and as LaTeX uses and his commands are being stylistic, there is no reason to be much more precise in those senses
 
@manooooh if you write in spanish and don't use babel then you need to do something equivalent to using babel or hyphenation will be wrong.
 
@DavidCarlisle please see the attached PDF, he does not worry about inserting hyperlinks or the correct copying of math symbols. However, he is highly respected and its content is completely digestible, accurate and easy to access (it is totally free)
 
@manooooh That's a wrong position. This has already been discussed and I'll speak no more about it.
 
@manooooh hyphenation has nothing to do with hyperlinks and accessability (in this sense) has nothing to do with whether the pdf is available.
 
11:47 PM
@manooooh Besides, the fact he's using a Mac is completely irrelevant.
 
@egreg understand me please. On the one hand, the mathematicians tell me that we do not have to worry too much about accessibility and style, but you say yes. Who should I believe?
 
@manooooh you should not have to ask.
 
@DavidCarlisle sorry. I suppose that if he detects any problem with the hyphenation he would have googled and found a solution that served him, without using those packages
 
@manooooh I doubt it.
 
@egreg sorry, I should say \usepackage[utf8]{inputenc}. His exactly words were: "there is no problem in adding \usepackage[T1]{fontenc}, and that makes the pdfs behave well. But I can not add \usepackage[utf8]{inputenc}, (cont'd)
(cont'd) because then accented words give an error, since all my texts are not in utf8, but in macroman. It has been a while since the Macintosh operating system has fully inserted utf8, so Macroman is only for compatibility with previous files, and I have already considered translating all my texts (not only my books, but everything that I have done). I write it in LaTeX, I do not even have Word installed on any of my computers) to utf8"
 
11:53 PM
@manooooh the doument is using 7bit fonts with no accented characters and only constructed accents so for example relaci ́on so a screen reader can not read it, that os what is meant by caring about accessibility, not making teh pdf free (which is a good thing but unrelated)
 
@manooooh well I don't think that he use T1 for the pdf you showed, the accents don't copy correctly.
 
@DavidCarlisle why not? Anyone can ask a question and anyone can answer or not. I care a lot about the style, but if my example to follow is a mathematician and an editor as some of you are, my head explodes, as it happens now...
 
@manooooh so he can use inputenc with the mac encoding specified, that is not an issue at all,
 
@DavidCarlisle if he had mistakes, I think it would not matter to him either. In fact, I told him about the AMS Style Guide and he does not even want to learn what he says there. You see that he also never use the amsmath package (he told me)
 
@manooooh accessibility is about social justice, it is like asking if it is OK to ban people with disabilities or whether you should try to help them. There are always practical limits in how much you can help but you shouldn't need to ask if helping people less fortunate is a good idea. (Note I'm talking about accessibility here not stylistic issues)
 
11:57 PM
@UlrikeFischer that cite was has been extracted a few weeks ago, and I doubt very much that he lies (I may do it unconsciously, but he does not)
 
@manooooh the text you cited said that T! encoding could have been used, that is not a lie, but not that relevant to this document, which used OT1
 
@DavidCarlisle he said "The only thing that happens is that there are many texts to translate, and I never find the moment" and even he probably knows how to translate it massively, but he does not have enough time. You can have a look at the amount of documents he has on his website: uv.es/ivorra/Libros/Libros.htm
 

« first day (3048 days earlier)      last day (1878 days later) »