« first day (3607 days earlier)      last day (1327 days later) » 

12:38 AM
@MartinSchröder -- Done. We'll see whether the reasoning is considered "adequate".
 
1:36 AM
Another TeX-related question on the Open Source (beta) list: The LaTeX project public license (LPPL), version 1.3
 
 
7 hours later…
8:37 AM
@cis and that's no improvement over the other answer, you're using picturecommand to solve the issue, just like I said. The scaling of the stuff wasn't the problem at all in that question.
 
8:48 AM
@DavidCarlisle about https://tex.stackexchange.com/a/74737/36296

> (which is perhaps less likely in beamer than in a journal article class).

I'm not sure, many people seem to be using 169 aspect ratio these days
 
@barbarabeeton great answer!
 
cis
9:09 AM
@PauloCereda Was `% arara: asymptote` updated to version 5?

I get an error here:



(Asymptote) Asymptote
-----------------------------------------------------------------
error: could not load module 'latex'
Namenlos-1.tex: 1.8: syntax error
error: could not load module 'Namenlos-1.tex'
C:\texlive\2020\bin\win32\runscript.tlu:915: command failed with exit code 1:
asy latex Namenlos-1.tex
% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
% arara: asymptote
% arara: pdflatex: {synctex: yes, interaction: nonstopmode, shell: yes}
\documentclass[border=20pt]{standalone}
\usepackage{asymptote}
\begin{document}
\begin{asy}
        import graph3;
        size(400,0);
        currentprojection=orthographic(4,0,2);

        real R=10;
        real a=10;
        real D=15*pi/180;

        triple f(pair t) {
        return ((R+a*cos(t.y+D))*cos(t.x+D),(R+a*cos(t.y+D))*sin(t.x+D),a*sin(t.y+D));
 
@cis This is not an error caused by arara, it's reported by arara.
 
yo'
@barbarabeeton well done!
 
cis
@PauloCereda And what's to do now?
 
@cis I don't know Asymptote, sorry.
 
cis
I have no idea how to translate anything with "asymptote".

(Almost) all of the codes that I have seen on the main page indicate a pure asymptote code, practically never a normal document.

Somehow one cannot do anything with the whole thing.
 
9:14 AM
I cannot even write TeX code properly, let alone asy. :)
 
@cis Fix the error asymptote gives you when running the example:
Possible Asymptote error:
test-test.asy: 20.27: no matching function 'material(pen, pen ambientpen)'
 
cis
@TeXnician Which error fix? I don't even know what the error is.
 
@cis I don't know asymptote either but if a programming language tells you it does not know a function it is usually a good idea to find the definition of the function. I just ran your example through asymptote.
 
cis
From me an example code in which asymptote calculates 1 + 1 ...
I can not translate that. Somehow one has to know how to do this and that must not be discussed or it is completely unnecessary to use normal LaTeX documents. Most threads always only contain pure asymptote codes.
 
9:30 AM
@cis That's not different for threads about latex, is it? Otherwise each answer would need a line "compile with pdflatex filename" or similar.
 
cis
Example here:
https://tex.stackexchange.com/a/562724/46023

If I wasn't so unbureaucratic:
I even wonder why this is not forbidden ... I also cannot post Python code or the like here regularly, maybe once in an exceptional case.

But asymptote users (almost) always post pure asymptote codes, not normal LaTeX documents.
 
@cis Why should they post latex documents if they discuss asymptote code?
 
cis
@samcarter_is_at_topanswers.xyz The main page is being misused as an asymptote advertising site - that's outrageous! :()
 
@cis "TeX, LaTeX and Friends" and not "TeX, LaTeX and no Friends"
 
cis
No, when I post a TikZ example, it is also in a document frame.

Only with asymptote is this regularly omitted. And pure asymptote codes appear, with no document and nothing.

And everyone can find out for themselves how to translate that.
 
9:35 AM
hi @samcarter_is_at_topanswers.xyz
 
@cis asymptote works without a document, tikz does not
 
how can I get the second and third equals signs to line up with the first one?
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{mathtools}
\newcommand{\var}[1]{\operatorname{var}{\!#1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\begin{document}
\begin{frame}[t]
\begin{multline*}
\!\!\!\!\!\var(X) = 0 + \var{\biggl(g(a) \smashoperator{\sum_{j\in[n]\setminus\{a\}}} f_j\cdot g(j) Y_j\biggr)}\\
= \E\biggl( g(a)^2 \smashoperator{\sum_{j\in[n]\backslash\{a\}}} f^2_j Y^2_j + \smashoperator{\sum_{
 
@Anush use something that aligns instead of multiline if you want alignment?
 
@cis Not only with asymptote. Metapost is the same and you do not complain about that. Really, some languages are only integrated into LaTeX and not written in TeX. TikZ is not the only game in town and different tools, different customs. Nobody forces you to use asymptote and if you want to use it, maybe you should not start with complete answers here but by reading an introductory guide or the manual (just don't tell @DavidCarlisle) ;)
 
@Anush multline is for a single equation spanning over multiple lines with no alignment, you want align* and &= for the alignment points. and don't post \!\!\! it makes us weep.
@Anush \newcommand{\var}[1]{\operatorname{var}{\!#1}} why the \! ???? that means that for example \var{x}+\var{x} gets asymmetric spacing around the +
 
9:41 AM
@DavidCarlisle the problem is "the spacing of an operator puts a small additional space on the left, so the first line starts to the right of the seond line. A small negative space (\hspace*) would be useful to “correct” for that."
@samcarter_is_at_topanswers.xyz That makes sense but is that possible here? I don't want the first equals sign to move
 
@Anush No, I am not sure what you mean by that but the markup and resulting typesetting is just wrong:-)
 
@DavidCarlisle better solutions gratefully received :)
 
@Anush a \mathop gets no space on the left if used at the start of an expressioj.
@Anush as I say use align and no \! then see where you are.
 
@Anush If you want the alignment independent from the first equal sign, nobody forces you to put the first line in the same align as the following lines
 
@DavidCarlisle It's from topanswers.xyz/tex?q=1325
 
9:43 AM
@Anush I don't follow that site
 
@samcarter_is_at_topanswers.xyz do you think it can all be done with align*?
 
cis
@TeXnician Can you give me some very simple code that contains asymptote that I can translate using arara? Where then the asymptote stuff appears on a page.
 
@DavidCarlisle Instead you could follow cooking.codidact.com to see if there are any roasted duck recipes
 
cis
Asymptotes are only used by sloppy people. Who do not care about creating a beautiful document. :(
 
@cis That's not really how asymptote normally works. You compile the asymptote code and get a picture. What you then do with the picture is entirely up to you
 
9:47 AM
@DavidCarlisle fair enough.
 
@cis Can you please stop to talk bad about people that happen to use other tools than you?
4
 
cis
@samcarter_is_at_topanswers.xyz And then \includegraphics{...} or what?
 
@cis yeah, or \node at (0,0) {\includegraphics{}}; or whatever makes you stop complaining
 
@cis I do not use aymptote normally, but chapter 7 in the manual is called "LaTeX Usage". I think it's more or less like gnuplot... it's a standalone thing but you can use it from a LaTeX file via an appropriate package (and a number of recompilations...)
 
@cis typically it's just a pdf, latex doesn't care how you make the pdf that you include could be made by asymptote or matlab or ms word...
 
9:51 AM
@samcarter_is_at_topanswers.xyz I am trying align* . How do you set the alignment to match an arbitray position so I can line up with the first equals sign?
 
@Anush Sorry, I don't understand. First you don't want alignment with the first = sign, now you do want things aligned? Can you maybe draw a sketch of what you want?
 
cis
@samcarter_is_at_topanswers.xyz @Rmano @DavidCarlisle Can you give me a very simple code that contains asymptote that I can translate using arara? Where then the asymptote stuff appears on a page?
 
@cis As said above, asymptote produces a picture, you can add it to your page in whatever way you want
 
@samcarter_is_at_topanswers.xyz sorry for being confusing.Let me try to show you
 
@cis appearing on the page is unrelated to asymptote or arara why do you think \includegraphics{foo.pdf} cares whether you made foo.pdf with asymptote or just downloaded it from the internet?
 
9:55 AM
@samcarter_is_at_topanswers.xyz I would like the 3rd and 4th lines to have the equals sign aligned with the first line
 
@cis I have only used it a couple of times testing bug reports but there are examples in the asymptote manual
 
but without changing the position of the equals sign on the first line
@samcarter_is_at_topanswers.xyz does that make better sense?
 
cis
@DavidCarlisle @DavidCarlisle @samcarter_is_at_topanswers.xyz But there are packages that allow 'asymptote' code in the document, e.g. within a section, whatever. They just aren't used.
 
@Anush use align* and &= and then (if you want) use the [fleqn] package option to set equations flush left
 
@Anush Like this?
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{mathtools}
\newcommand{\var}[1]{\operatorname{var}{\!#1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\begin{document}
\begin{frame}[t]
\begin{multline*}
\var(X) = 0 + \var{\biggl(g(a) \smashoperator{\sum_{j\in[n]\setminus\{a\}}} f_j\cdot g(j) Y_j\biggr)}\\
= \E\biggl( g(a)^2 \smashoperator{\sum_{j\in[n]\backslash\{a\}}} f^2_j Y^2_j + \smashoperator{\sum_{\substack{j
 
9:57 AM
@samcarter_is_at_topanswers.xyz but without the \! :-)
 
:55544462 I do not use either (sorry @PauloCereda, will correct this failure) but it seems that you have to run the following:
pdflatex my-doc-with-asy.tex
asy my-doc-with-asy-*.asy
pdflatex my-doc-with-asy.tex
 
@Rmano no worries, I rarely use arara. :D
 
@DavidCarlisle Edited just before the timeout :)
 
That is, the trick is to call asy on my-doc-with-asy-*.asy literally, no idea how this can be done
 
@samcarter_is_at_topanswers.xyz that seems to look the same as my example. That is the 3rd and 4th lines have their equal signs much too far right.
 
9:59 AM
@Anush It looks just like in your picture, wasn't that what you wanted?
@Anush If you want them all left aligned, use chat.stackexchange.com/transcript/message/55544511#55544511
 
@samcarter_is_at_topanswers.xyz no I am really sorry for the confusion. The picture I posted was what I have so far. I just want to move equals signs of the 3rd and 4th lines to align with the equals sign of the first line
then all will be good
I don't want them flush to the left
 
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{mathtools}
\newcommand{\var}[1]{\operatorname{var}{#1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\begin{document}
\begin{frame}[t]
\begin{align*}
\var(X) &= 0 + \var{\biggl(g(a) \smashoperator{\sum_{j\in[n]\setminus\{a\}}} f_j\cdot g(j) Y_j\biggr)}\\[\jot]
&= \E\biggl( g(a)^2 \smashoperator{\sum_{j\in[n]\backslash\{a\}}} f^2_j Y^2_j +{}\\
 
@DavidCarlisle that is another option
 
actually I broke the second line in the wrong place, meant to do it after the -
@Anush using \! in the definition of var isn't an option at all!
 
@DavidCarlisle Ohh, you are using \jot! The command of the week!
 
10:04 AM
@samcarter_is_at_topanswers.xyz I tried \iota but it didn't work.
 
@DavidCarlisle ooh use greek letter you must
oh wait, it's not Yoda
 
@DavidCarlisle How can I shift the third line to the right a bit? && sends it much too far
 
@Anush \quad?
 
10:07 AM
@Anush \qquad\qquad for example or \hspace{3.432cm} ot ...
 
@samcarter_is_at_topanswers.xyz mine is a jot smaller ;-).
 
@Rmano I'd already used \qquad above @Anush did you drop that space??
 
@DavidCarlisle I'm disappointed that you did not give the space as multiples of \jot :)
 
@samcarter_is_at_topanswers.xyz \jot is vertical ;-P
 
@Anush also your \biggl brackets are much too big They are hitting your summation limits but even without that they don't need to be bigger than the summation sign
 
10:10 AM
@DavidCarlisle \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad :)
@Rmano thanks
@samcarter_is_at_topanswers.xyz thanks
@DavidCarlisle what would be better?
 
@Anush \def\quack{\qquad\qquad} ;-)
 
@Rmano much better!
although deaf quack is something else
 
@Rmano We absolutely needs this macro - I always wanted to say "one quack to the right"
 
cis
@Rmano That would be far too easy and would make the user's work far too much easier. At least "nonstopmode" is missing somewhere.
Anyway, with my code it doesn't work that way.
 
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{mathtools}
\newcommand{\var}[1]{\operatorname{var}{#1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\begin{document}
\begin{frame}[t]
\begin{align*}
\var(X) &= 0 + \var{\Bigl(g(a) \smashoperator{\sum_{j\in[n]\setminus\{a\}}} f_j\cdot g(j) Y_j\Bigr)}\\[\jot]
&= \E\Bigl( g(a)^2 \smashoperator{\sum_{j\in[n]\backslash\{a\}}} f^2_j Y^2_j + \smashoperator{\sum_{\substack{j
 
10:17 AM
@DavidCarlisle thanks!
my last question for the moment is how can I make f (as in \norm{f}) bold? I tried \boldmath f but it doesn't really do anything. I tried adding \usepackage{lmodern} but didn't do anything
 
@Anush \bm{f} from the excellent bm package :-)
 
that worked! Thank you
 
\boldmath in math mode is an error, \usepackage{lmodern} would have switched all your text and math from computer modern fonts to latin modern fonts
 
bm all the way from now on :)
what does [\jot] do?
 
@Anush \\[\jot] adds a tiny bit of vertical space
 
10:25 AM
@Anush \\[...] adds vertical space (\jot is 3pt by default) I added it so the line spacing between equations is a bit more than the line space for the one wrapped equation
 
thanks very much. That is really interesting
this is quite a fun problem. If I use \setbeamercovered{transparent} then the math is all transparent apart from ... well take a look
smashoperator is the culprit
maybe this is interesting enough to ask on main?
 
@Anush no?
Can you make a mwe?
 
\documentclass[xcolor={rgb}]{beamer}
\setbeamercovered{transparent}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\usepackage{mathtools}
\usepackage{bm}
\newcommand{\var}[1]{\operatorname{var}{#1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\begin{document}
\begin{frame}[t]
\begin{align*}
\onslide<1->{&= \E\Bigl( g(a)^2 \smashoperator{\sum_{j\in[n]\backslash\{a\}}} f^2_j Y^2_j + \smashoperator{\sum_{\substack{j\in[n]\setminus\{a\}\\i\ne j}}} f_i f_j g(i) g(j)
if it's non-trivial I am happy to post a question
 
10:46 AM
@Anush please do
 
@samcarter_is_at_topanswers.xyz I hope you don't mind if it's on main?
 
@Anush I don't mind, I'll just ignore
 
@samcarter_is_at_topanswers.xyz :(
when they fail to answer it I will repost on topanswers
I suppose if both sides are really ignoring each I could post to both and no one would know :)
 
@Anush You'd get an annoyed comment from me, that you should link to each other if you cross-post :)
 
@samcarter_is_at_topanswers.xyz I would definitely add a link!
 
10:57 AM
@Anush And I would post a workaround
 
@samcarter_is_at_topanswers.xyz awesome
 
@Anush Got tired of waiting
 
@samcarter_is_at_topanswers.xyz > ooh <
^^ link
 
@samcarter_is_at_topanswers.xyz :D
 
11:07 AM
@PauloCereda :D
 
@samcarter_is_at_topanswers.xyz may I applaud your impatience :)
 
@Skillmonlikestopanswers.xyz :D
 
Hi everyone!
My manuscript contains a grossly-long citation (hundreds of authors) amid other normal references. Is there a way with bibtex that I can force it to be the last reference in the bibliography, without changing the ordering of the rest (which is by first occurence)?
 
@Anush By the way, if you go to your user profile and associate your profile with your tex.se user, such imported question will show up in the list of your questions etc.
 
11:12 AM
@AntiEarth shorten it by letting biblatex use et al.?
 
@samcarter_is_at_topanswers.xyz I will take a look later. Thanks
 
@Skillmonlikestopanswers.xyz I wish I could - the beurocratic puppet master says no :(
 
@Anush take a look at what?
 
@Skillmonlikestopanswers.xyz sorry... wrong nick
 
@AntiEarth Ok. I don't know whether the following gives good formatting, but in biblatex you can assign citations to groups, then print the bibliography for a single group (or exclude some groups, should be possible as well). That should give you your bibliography for all the other keys. Then continue by generating the bibliography of the other group and do that without a heading, etc.
@AntiEarth Take a look at the manual on how all this should be possible
 
11:17 AM
@AntiEarth ooh Metallica
@samcarter_is_at_topanswers.xyz mynintendonews.com/2020/09/14/…
 
@PauloCereda :D You should go into advertisement industry after such a huge success
 
@samcarter_is_at_topanswers.xyz :D
 
@Skillmonlikestopanswers.xyz Ahh that's very clever, thanks very much!
 
@samcarter_is_at_topanswers.xyz They could give me a freebie. :)
@AntiEarth rabbits are very smart. :)
 
@PauloCereda You should ask them - this approach worked great with overleaf, they gave me two ducks :)
 
11:22 AM
@AntiEarth You can simply move the \bibitem to the end (and don't re-run bibtex)
 
@samcarter_is_at_topanswers.xyz ooh :)
 
@DavidCarlisle I'm using a .bib file. I could remove first-appearance sorting and sort myself, but I'd prefer as little labour as possible!
(perhaps that means I'm using biblatex? I'm unsure)
 
@AntiEarth let bibtex generate the file then simply move one bibitem to the end. There is almost no manual labour needed
 
is there a short unary minus sign?
 
@Anush not in most font sets, nor in unicode, it is the same length but with less space araound it
 
11:28 AM
@DavidCarlisle ok thanks. It looks very odd in e.g. $f_{-j}$ in whatever font beamer uses by default
it's much too long
 
@samcarter_is_at_topanswers.xyz well you don't need siunitx just for that just {}^-j but while the high - is used in some teaching contexts for literal negative integers, I wouldn't use it with a variable name, like j
 
@samcarter_is_at_topanswers.xyz thank you
 
@samcarter_is_at_topanswers.xyz ah this one is giving a low shorter -, sorry
 
I will have to look at this later as it seems complicated
 
12:12 PM
@DavidCarlisle ahh good idea (besides that I'd have to do this every time I update the references)
Unfortunately Overleaf doesn't let me see the intermediate/aux files, so I'd have to DL first then update :(
 
\NewDocumentCommand{\optMu}{sm}{%
	\IfBooleanT#1{(#2)}{#2}%
}%
Why does $\optMu*{a}$ give me (a)a?
it should be IfBooleanTF, gosh.
 
@AntiEarth you can get to the files in overleaf from menu that gives the log file
 
cis
12:28 PM
@samcarter_is_at_topanswers.xyz Yes, great, I can translate
the model example from wikipedia with
asy -f pdf test.asy
(a command that you have to know first) but not much more.

But that's not how I work anyway.
When I create something, in the end there is a document! Nothing half-finished, nothing half-hearted, nothing incomplete, not a part of the document, not a section of it, no, a full-fledged and complete document!

Before I waste my time and familiarize myself with the asymptote syntax, I prefer to do something with Sagemath / -TeX. This is at least document-friendly.
 
12:57 PM
@cis Just because I had 5 minutes of spare time, here's a simple example which I was able to produce from just looking at the two manuals and getting the code from de.wikipedia.org/wiki/Asymptote_(Vektorgrafik-Sprache):
% arara: pdflatex
% arara: asymptote: { engine: pdflatex, format: pdf, files: [ test-1.asy ] }
% arara: pdflatex
\documentclass{article}
\usepackage[inline]{asymptote}
\begin{document}
\begin{asy}
import graph;
size(6cm);
draw((-1,0) -- (-0.5,1) -- (0.5,1) -- (1,0) -- cycle);
dot((-1,0),green);
dot((+1,0),green);
dot((-0.5,1),blue);
dot((+0.5,1),blue);

real f(real x) {return 0.1*cos(2*pi*10*x)*cos(2*pi*1*x) +3/8;}
path g = graph(f,-3/4,3/4,n=1000, join=operator --);
draw(g, gray);

label("Hello world!", (0,0.1));
Obviously the files parameter has to be adjusted because my file was named test.tex so the asymptote package writes to test-1.asy. The asypictureB package seems more powerful for file names etc.
@cis So if you have another problem like this, please take a few of the minutes you spend on talking about complications with the tools in this chat and use them to read the manuals. You would be much more pleased by the results you can achieve ;)
6
 
@samcarter_is_at_topanswers.xyz The good news is that mathtools seems to still be in development
 
cis
@TeXnician Not bad.
But strange: I have to type in the "filename":
`% arara: asymptote: { engine: pdflatex, format: pdf, files: [ test03-1.asy ] }`

Normally arara does it....
 
@cis Absolutely not strange. arara processes a document. If you call it on test03.tex arara will by default call its rules on test03.tex. But asymptote cannot process test03.tex but needs to process whatever the package has written to. Hence, you need to tell arara that it should process this file instead of another one. As I said, there are more automated approaches (asypictureB package which uses its own shell escape calls for instance) if you do not like specifying the name.
 
@DavidCarlisle to download and edit locally, yes. I can't see a way to view them within overleaf - is it possible?
 
cis
1:13 PM
I suggest a changement of the default value of the arara-rule with a star, such that the result is like
% arara: asymptote: { engine: pdflatex, format: pdf, files: [ test03-*.asy ] }

But I do not know asymptote oder asymptote.sty good enough and it's way to write filenames
 
@cis As you can clearly see in gitlab.com/islandoftex/arara/-/blob/development/core/src/main/… this is not the current behavior of arara. But @PauloCereda is surely open to a feature request at gitlab.com/islandoftex/arara. Concerning the packages it is probably a good idea that you try existent solutions that automate it for you by using shell escape. Probably that is the most filename independent you can get.
 
@cis Btw: It's easy enough to write an own rule by using the listFilesByPatterns method of arara which is able to process shell globs. You just can't use arara's default asymptote rule.
 
asymptote.sty generates test-1.asy, test-2.asy, etc, so this is not the normal behavior of arara (nor latexmk, although probably you can write a rule for this).
 
cis
@TeXnician @Rmano Yes, of course it would be nicer if you don't have to enter the filename with the arara rule, because the default does this normally.

But nene, I avoid asymptote and don't get involved.

I don't critisize the tool itself, but rather the way in which solutions are created with it (at least most of the ones I've seen so far), some of which are halved, but rarely whole.
 
1:27 PM
@AntiEarth I suspect you need to download and then add to project (@yo' could confirm) but then you can edit with overleaf
@cis that seems a very strange point of view! If you were including pictures into a latex document would you object to having to manage separate jpg files and use a camera not controlled by arara declarations in the document? why is generating images with asymptote any different to using a camera (or gnuplot or R or ...)
2
 
yo'
@DavidCarlisle @AntiEarth (I'm from Overleaf Support) Yep, you can upload any file to the project, but note that if a file with the same name is generated in the project, it'll practically overwrite the uploaded file, so I'm not sure that's the more straightforward solution. What exactly are you trying to do?
 
I think I am being stupid. How do you use align? This isn't working
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\begin{document}
\begin{frame}[t]
\begin{align*}
\Pr\left(\sum_{i=1}^t Z_i \geq (1+1/2) \mu\right) &\leq \operatorname{exp}(-(1/2)^2\mu/3) &= \operatorname{exp}(-(1/2)^2 t/9)\\
&&= \operatorname{exp}(-t/36)
\end{align*}
\end{frame}
\end{document}
 
@yo' sorry to ping you mid conversation I was suggesting hand editing (as a final stage) the bbl file to get a one-off out of order listing by grabbing the generated bbl from the logs and aux files area and then uploading as a source file to the project and tinkering
 
\documentclass[xcolor={rgb}]{beamer}
\beamertemplatenavigationsymbolsempty
\setbeamersize{text margin left=10mm,text margin right=5mm}
\setbeamertemplate{frametitle}[default][center]
\begin{document}
\begin{frame}[t]
\begin{align*}
\Pr\left(\sum_{i=1}^t Z_i \geq (1+1/2) \mu\right) &\leq \operatorname{exp}(-(1/2)^2\mu/3) &&= \operatorname{exp}(-(1/2)^2 t/9)\\
&&&= \operatorname{exp}(-t/36)
\end{align*}
\end{frame}
\end{document}
@Anush ^^^ What @DavidCarlisle said in his now deleted comment
 
@yo' I didn't know it was on overleaf when I originally suggested it:-)
 
yo'
1:37 PM
@DavidCarlisle can probably be done with some string comparison after modifying \bibtem, and then tweaking \endthebibliography to include the last item.
 
what did he say??
 
yo'
@DavidCarlisle I understand :-)
 
@Anush Add an additional & to get left aligned instead of right aligned
 
@samcarter_is_at_topanswers.xyz that works! Thank you
 
1:39 PM
@Anush align is like \begin{tabular}{rlrlrlrlrlrlrlrlrl} so odd columns are right aligned (typically towards an =) and even columns are left aligned (typically starting with =)
 
@samcarter_is_at_topanswers.xyz yes. I did try some variations but not the working one
so && left aligns and that's ok. But &&& on the second line is confusing.
how is &&& to be bracketed?
 
@Anush && is not an operation in itself it is empty & empty & stuff exactly as in tabular or array
 
@Anush You can't formulate this so globally, it depends on which column you are in
 
@Anush try with zz1 & zz2 & zz3&= \operatorname{exp}(-t/36) to see data in the empty cells and which way they align
 
empty & empty & stuff makes sense to me. But then &&& would mean empty & empty & empty & stuff
 
1:44 PM
@Anush yes
 
but && was used to mark a single column in the first line
 
@Anush no
 
not as empty & empty & stuff
it doesn't mean start a new left aligned column?
 
@Anush no two columns one empty
@Anush the first & starts an (empty) right aligned column and the second & starts a left aligned column. As I said above there is no && operation it is simply two &
 
sorry to be dim.. there are three &'s in the first line
what is the third doing? it looks like it should be starting a right aligned column
oh I see..
thanks :)
 
1:51 PM
@yo' and @PauloCereda -- Thanks. I've actually found Knuth's authoritative statement on the matter, and added it to the answer.
 
\begin{align*}...\end{align*}
\vspace*{-1em}
First line
Second line
That doesn't reduce the space between align* and first line, but rather the space between first and second line.
How can I fix this?
 
@ComFreek use \\[-1em] on the last row, or put a blank line an \noindent before First (or best don't add the vspace:-)
 
wonderful, the first thing works
well I have to compress this Beamer slide
:)
Are there "inline" theorem environments for Beamer?
I want Theorem (abc): If a, then b.
I now have that: imgur.com/a/sw1Cdua
But a blue fill for "Theorem (abc)" would have been nice
 
2:29 PM
@ComFreek If you don't need numbering and such, you could simply do \structure{Theorem (abc):} If a, then b.
@ComFreek Or have a look at tex.stackexchange.com/a/329929/36296
 
@barbarabeeton subscribed just to upvote --- thanks!
 
@Rmano Seems some others did as well - @barbarabeeton is already second place in the weekly reputation :)
 
@samcarter_is_at_topanswers.xyz thanks for investigating, not sure though if they really look better than what I already have.
 
3:05 PM
@yo' ahh I suspected so. I'm trying to force a particular bibtex citation to appear in the bottom of the references (leaving the other citations still sorted by first occurence). One method is to manually edit the .bbl file and put the citation at the bottom. Looks like this can't be done inside Overleaf at all, but that's fine for my purposes
 
@AntiEarth How are your references sorted? Alphabetically?
 
@samcarter_is_at_topanswers.xyz by "first occurence"
 
@AntiEarth I suspect that you can do {\nofiles\cite{whatever}} at the point that you want the citation and then \nocite{whatever} at the end of the document.
 
As an additional spanner, the citation occurs in a list of cites, via:
`\cite{refA,refB,ref_to_be_moved_to_bottom,refC}`
Perhaps I can do
{\nofiles\cite{refA,refB,ref_to_be_moved_to_bottom,refC}}
\nocite{refA,refB,refC}

...

\nocite{ref_to_be_moved_to_bottom}
 
@AntiEarth {\nofiles\cite{refA,refB,ref_to_be_moved_to_bottom,refC}}\nocite{refA,refB}}.....\nocite{ref_to_be_moved_to_bottom}
@AntiEarth er yes:-)
@AntiEarth hardly ever used \nofiles and never mid document but it probably does the right thing looking at the definition
 
3:14 PM
@DavidCarlisle that looks like it'll work (though I've since just done it manually, and there's a few too many citations for me to altar to test quickly!). Thanks very much!
 
I found here: tex.stackexchange.com/a/119080/38080 the option psdextra for hyperref --- and it works to have greek in the bookmarks. Anyone know where I can find documentation?
 
@Rmano If @UlrikeFischer were here she would have told you to read the manual:-)
\subsection{Option `psdextra'}

 LaTeX's NFSS is used to assist the conversion of arbitrary
  TeX strings to PDF strings (bookmarks, PDF information entries).
  Many math command names (\verb|\geq|, \verb|\notin|, ...) are not in control
  of NFSS, therefore they are defined with prefix `text'
  (\verb|\textgeq|, \verb|\textnotin|, ...). They can be mapped to short names
  during the processing to PDF strings. The disadvantage is that
  they are many hundreds macros that need to be redefined for
@UlrikeFischer good answer?
 
@samcarter_is_at_topanswers.xyz another tricky question... :)
 
@DavidCarlisle or to check the code ;-)
 
3:29 PM
@UlrikeFischer that would have been my normal answer, but as I think I put that text in the manual from the separate readme.pdf document I suspected it might be there....
 
@DavidCarlisle ops, I do not have it in my manual. But I have the option... strange. I'll check, maybe my local conf has something pesky. Thanks.
 
@Rmano look in readme.pdf document next to the old manual, there were extra options documented there, so if you have a manual that is a few years old it will be there.
 
in this rather large MWE (sorry) how would I get the circles to start flush to the left of their box? At the moment there is small gap
 
@Rmano 2018:
commit ef4eeddd09c989fbdd4401f56585557824c2dfbc
Author: David Carlisle <d.p.carlisle@gmail.com>
Date:   Sat Sep 29 12:57:37 2018 +0100

    Just maintain README as markdown, move most text to the manual as TeX
 
@Anush I'll have a look. In the mean time please read betterposters.blogspot.com/2012/08/the-data-prison.html
 
3:38 PM
slightly smaller bpa.st/6C7A
@samcarter_is_at_topanswers.xyz thank you. I did start with an open prison but this was prettier I think
not that I am an expert on looks!
 
[romano:~] % texdoc -l hyperref
 1 /usr/share/texlive/texmf-dist/doc/latex/hyperref/manual.pdf
...
11 /usr/share/texlive/texmf-dist/doc/latex/hyperref/README.pdf
   = Readme, hyper-crossreferenced
@DavidCarlisle Ah, just in 11th position. Found, thanks!
 
@Rmano update your tex system:-)
 
@DavidCarlisle yes, I need too. I am a bit blocked now, so I have TeXLive2017 in the office and I use it because I can't (yet) upgrade. But it's in the wish list for Christmas ;-)
 
@Anush You can remove most of the space with \begin{array}[b]{@{}l@{}}
 
...and I have a portable 2020 too!
 
3:43 PM
@samcarter_is_at_topanswers.xyz is this replacement happening at $h_1$ \& $\begin{array}[b]{l} for example?
 
@Anush Personally I hate such zebra strip tables, they look like 90s word tables
@Anush yes
 
@samcarter_is_at_topanswers.xyz I am always open to improvements
@samcarter_is_at_topanswers.xyz let me give it a go
 
@Rmano for most people most of the time a 10 year old latex is fine, but chatting here it's rather assumed you are on the bleeding edge....
 
@Anush I'd make clean and simple booktab table:
 
@samcarter_is_at_topanswers.xyz it needs colors I thin
 
I think that in theory but on the slide what color would you have the matrix?
 
The National Weather Service is monitoring eight tropical "disturbances", Tropical storm Vicki has been named. There only one assigned name left (beginning with W) then they go to Greek letters. One observer commented "The planet is trying to shake us off like a bad case of fleas." I think only one person on the planet still thinks it's all a hoax. Oh, and the North American west coast and Siberia are burning.
 
ah ok
@samcarter_is_at_topanswers.xyz I think I just need the boxes a tiny bit wider
I can't see where that setting is either :(
 
@samcarter_is_at_topanswers.xyz I'm surprised you haven't mentioned the colortbl doc for fine examples of stylish tables.
 
it feels like it should be in "text height=1.6em,text depth=0.2ex,cond"
but it isn't
 
@DavidCarlisle Sorry, I though everyone would already know that :)
 
@samcarter_is_at_topanswers.xyz oh, you are probably right, OK.
 
@samcarter_is_at_topanswers.xyz I just need to be able to fit 4 circles on one row
so a slightly wider box should do it
 
@Anush You could add a text width into this: text width=4cm
 
3:51 PM
@JosephWright Just as a note, the "Copyright" line in l3draw-code.tex and l3pdf-code.tex has not been updated
 
@Anush or better increase text width=3.2em
 
@samcarter_is_at_topanswers.xyz ah yes. What does cond do?
 
@Anush cond is defined in line 27
 
text width=1.2cm seems to work
thanks again
 
@DavidCarlisle Hola, one question, the `texmf` directory in the `LaTeX3` repository, what does it do?
It has some files with older versions of some packages (`luaotfload` for example), just out of curiosity :)
 
3:57 PM
@PabloGonzálezL most of the 2e tests run in a sandboxed environment that does not search the system tex input tree so that's just enough local stuff so luatex works
 
@samcarter_is_at_topanswers.xyz it's a very frustrating process. Now $h_1$ has moved away from the matrix and 1,2,3 are left aligned.
 
@DavidCarlisle Ha, I understand, I am trying to understand how the regression tests work in 'l3build', thanks for the explanation.
 
@Anush change the width in l. 43, not l. 48
 
@samcarter_is_at_topanswers.xyz which line is this? I don't see a 48 in my code
 
@PabloGonzálezL basically l3build does, latex, diff .log against a saved copy, complain if they are different, the rest is just details:-)
 
4:03 PM
    [cond/.code={%
		\ifnum\pgfmatrixcurrentrow=1\relax
		\else
		  \ifnum\pgfmatrixcurrentcolumn=1\relax
			  \else
 			  \tikzset{fill=blue!10,draw=white,text width=3.2em,align=left}%
		  \fi
		\fi}]
 
@Anush line 48 :-)
 
@DavidCarlisle Details are important :-)
 
@Anush ^^^ Change the width here, don't add it to text height=1.6em,text depth=0.2ex,cond
 
oh I see..turning on line numbers :)
 
@DavidCarlisle around?
 
4:16 PM
@samcarter_is_at_topanswers.xyz thank you
 
@barbarabeeton Spain north-west coast too. That's ...scary, overall. :-(
 
4:51 PM
@PauloCereda no?
 
5:13 PM
@DavidCarlisle managed to get it.
 
@PauloCereda ?
 
@DavidCarlisle /hangouts poke
ooh open source :)Paulo Cereda 15 secs ago
@samcarter_is_at_topanswers.xyz ^^ it had to be done
 
5:38 PM
user image
4
germans in venice ^^^
 
cis
5:58 PM
@samcarter_is_at_topanswers.xyz How ... centered vertically? There is no such thing ...
:()
 
6:16 PM
@PauloCereda :D
@UlrikeFischer Ohh, that looks nice!
 
@samcarter_is_at_topanswers.xyz it is. Only a bit hot (but it should get better on thursday).
 
@UlrikeFischer Is there a noticeable effect of the pandemic or as full as usual?
@cis Just a simple booktab and setting the baseline of the tikz circles, no magic
 
@samcarter_is_at_topanswers.xyz It is not empty But they are mostly individuals and pairs, no large groups which fall from a big ship for a day in venice.
 
@UlrikeFischer that sounds certainly better than usual :) Have a lot of fun!
 
@samcarter_is_at_topanswers.xyz do you know Venice?
 
6:26 PM
@UlrikeFischer ooh
 
@PauloCereda did you see the cap?
 
@UlrikeFischer I did <3
 
@UlrikeFischer I've been there once - beautiful city but is was so full
Wondering if there are base caps in bear size....
 
@samcarter_is_at_topanswers.xyz not everywhere, the crowd only knows a few streets and places.
 
@UlrikeFischer So what is the bears secret tip off the beaten paths?
 
6:46 PM
@samcarter_is_at_topanswers.xyz simply go a bit away from San Marco ;-)
 
@UlrikeFischer -- "Deutsche in Venedig" sounds more enticing than "Tod in Venedig".
 
7:31 PM
Apple, why?!
 
8:22 PM
hello Duck & friends
 
8:56 PM
@samcarter_is_at_topanswers.xyz Well, go wherever your feet take you and you'll see wonderful things. However, a not so crowded path should be the Ghetto and the zone nearby, with Madonna dell'Orto and east to San Giovanni e Paolo and San Francesco della Vigna, then south to the Arsenale. Don't miss the Scuola di San Giorgio degli Schiavoni. You can stay quite away from the Canal Grande and the main roads.
 
@egreg we were today at Madonna dell'Orto and Zanipolo ;-)
 
@UlrikeFischer :-) Did you see the Turks?
 
what is happening here
 
@UlrikeFischer How long are you staying?
 
@egreg nearly two weeks.
@egreg which Turks?
 
@PauloCereda that looks painful
 
@egreg Ah, I thought you mean something in the churches, yes we passed there today.
 
9:29 PM
I think I can name two of the favourite authors of the person that put this template together:

\thesistype{Thesis}
\author{Stuart Arthur Dent}
\previousdegrees{%
M.Sc., Wossamotta University, 1963\\
B.Sc., Unseen University, 1836}
\degree{Doctor of Philosophy}
\discipline{Mathematics}
\department{Department of Inadvisably Applied Mathematics}
\faculty{Faculty of Mad Science}
\copyrightyear{2017}
\semester{Spring 2017}
\date{January 10, 2017}

\keywords{thesis template; Simon Fraser University; time travel paradoxes}
 
9:57 PM
whoa
 
10:34 PM
Dammit, now I have to pick a citation style and package for my thesis. Any recommendations?
Most of my group used the IEEE style which I'm not a fan of. I'm thinking of using Joseph's BibLaTeX package for RSC style, but ACS is also an option
 

« first day (3607 days earlier)      last day (1327 days later) »