« first day (3442 days earlier)      last day (1485 days later) » 

12:20 AM
Hello guys!! I am trying to align math expressions between different \item's using beamer document class, but I don't know how. Please consider this MWE:
\documentclass{beamer}
\usetheme{Copenhagen}
\usepackage{textcomp}
\beamertemplatenavigationsymbolsempty

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

\begin{frame}
\begin{block}{Exercise}
\begin{itemize}
\item<1-> Proof: \[\sum_{i=0}^{n+1}(i+1)\cdot i=\sum_{i=0}^{n}(i+1)\cdot i+(n+2)\cdot(n+1)\]
\item<2->[] \[=\frac{1}{3}n(n+1)(n+2)+(n+2)\cdot(n+1)\]

\[=(n+2)(n+1)\left(\frac{1}{3}n+1\right)=(n+2)(n+1)\frac{1}{3}(n+3).\]
\end{itemize}
\end{block}
I want the last two rows aligned to the first one (if there is no enough space, then the entire alignment should be shifted to the left, only in that case):
Is it possible to do it? Thank you!!
 
12:39 AM
@manooooh -- The third line is simply too long to be aligned with the first line. I'd be inclined to keep the first line at the position shown in the second slide, and align the other two on their equal signs, but moved far enough left to leave about the same space on the right of the last line as is now on the left of the first line
 
@barbarabeeton thanks!! So you propose the following configuration right?:
\item<4-> Proof: \[\sum_{i=0}^{n+1}(i+1)\cdot i=\sum_{i=0}^{n}(i+1)\cdot i+(n+2)\cdot(n+1)\]

\item<5->[]
\begin{align*}
&=\frac{1}{3}n(n+1)(n+2)+(n+2)\cdot(n+1)\\
&=(n+2)(n+1)\left(\frac{1}{3}n+1\right)=(n+2)(n+1)\frac{1}{3}(n+3).
\end{align*}
 
@manooooh -- Yes. You will probably have to add some space at the right on the first line, and some on the left for the last two. As I see from the code, the two groups will br centered otherwise. And you'll probably have to add a bit of vertical space between the aligned lines. It's all manual, unfortunately, but you really want your slides to look nice.
 
Yes, I want the slides to look nice. Unfortunately I picked bad equal expressions on both sides of the = sign to be shown, that makes things a bit more tricky as you said
 
 
5 hours later…
5:38 AM
@manooooh If I were you I would skip the next-to-last step. Then the TeX problem goes away, and the hopefully enthusiastic students can do it themselves if they are in doubt. :)
(and perhaps write the second term on the second line as $\frac{1}{3}3(n+2)(n+1)$.
 
user434058
 
user434058
How do I get rid of this cramped f and l in inflection point?
 
6:16 AM
14
Q: How do I disable ligatures?

AnnaI am writing my dissertation in LaTeX I am faced with this odd situation that if 'f' character has another character (f, i or l) next to it, it sticks the two together as can be noted below. This makes the two 'f' look different. How can I disable this?

@mickep thanks!! I make this little beamer presentation to make videos for my students (I am actually the assistant of the professor). I have uploaded the videos where I am using this documents to my YouTube channel (which only has 2 videos) if you want to see them (in Spanish) ;). The problem is that I don't understand when you say "and the hopefully enthusiastic students can do it themselves if they are in doubt"; what do you mean by that? I mean, if I put things in another \item --
-- then I prevent from spoiling the whole proof, don't you think so?
 
user434058
6:51 AM
@manooooh Thanks! After all, they are not a bad thing, I suppose.
 
@FakeMod typographically speaking, ligatures are useful. But I am not the most significant person you can talk about this things, it's better to wait @DavidCarlisle or @barbarabeeton for better answers than mine
 
7:09 AM
@manooooh Something like that.
 
7:39 AM
@mickep I absolutely agree with you. (What a beatiful sketch!) My question is, would you show the entire proof at once on one frame? Or would you split the proof into two or more slides?
 
@manooooh I don't know about that. I always use the blackboard when I teach, and then things come in parts, so perhaps add "one equal sign" each time.
 
@mickep so we agree that we should split the terms around equal signs. So there comes the original question; how can we align them when using \item?
 
@manooooh I never used beamer, so I duck[sic] on this one, and leave it to someone else.
 
I don't think this is related to beamer but itemize or enumerate (lists). However I appreciate the sketch and your efforts! Quack!
 
8:01 AM
@FakeMod why would you disable ligatures? they have been used in all fine publications in Latin scripts since before the invention of printing
 
user434058
8:18 AM
@DavidCarlisle This was probably my first encounter, or the first one when i consciously noticed them. So I was a bit surprised, but now I am not. Thanks!
 
8:53 AM
quack
@mickep ooh
 
@PauloCereda Ohh, indeed.
 
 
1 hour later…
10:14 AM
> You can be denied citizenship in Switzerland for "being too annoying."
Hmmmmmm
 
@PauloCereda Good reason :)
 
@CarLaTeX They have chocolate!
 
@PauloCereda Very good chocolate, I dare say
 
@CarLaTeX ooh
 
How does one revert a owners edit? I told the person what was wrong and they removed their mistake from the question so now the question no longer make any sense
0
Q: Geometry : unable to change page size

GuliupI am trying to work on a paper with specific size : 240mm x 160 mm. To generate my paper I am using pdflatex from texlive. I used to do this : \usepackage{ifpdf} \ifpdf \pdfpageheight=240mm \pdfpagewidth=160mm \else \special{papersize=240mm,160mm} \fi It was working perfectly, but it is...

 
10:48 AM
@JosephWright thanks
 
11:14 AM
@MarcelKrüger do you understand the indexing logic in the pdfe library? I'm trying to extract the info for a destination, and have to use index 1 both for the page reference and the name:
  type, ref, pageref = GETFROMARRAY(destarray,1)
       print("AAA",type,ref,pageref)
       name =  GETNAME(destarray,1)
       print("BBB",name)
AAA     10      <pdfe.reference 14>     14
BBB     FitH
@MarcelKrüger GETNAME is the local version of pdfe.getname etc
 
11:30 AM
@UlrikeFischer It's based on a C library, so arrays are 0-based instead of 1-based. But dictionaries, streams and arrays can also be accessed directly through metatables. Given that these therefore look like native Lua objects, 1-based indices are used in these cases. Additionally there are the getfrom functions. These are closely related to the totable functions which create actual Lua tables, so they also use Lua-like indexes.
Of course, you could ask why they didn't just change everything to 1-based indices given that about half of the interfaces already use it. But pdfe.getname and friends are not used in ConTeXt, so noone noticed the inconsistency.
 
@MarcelKrüger That is quite a mess. Can one get the name FitH without using getname?
 
@UlrikeFischer Use getfromarray. Then you can just look at the second return value.
Or destarray[2]
 
@MarcelKrüger ah yes, that is more consistent.
so basically "avoid get[string|integer|number|boolean|name] with arrays if you want to stay sane ;-)"
 
@UlrikeFischer The actual rule is: Just always avoid get[string|integer|number|...].
 
@MarcelKrüger oh
 
11:43 AM
@MarcelKrüger hm. Didn't you just asked about getstring? ;-)
 
@UlrikeFischer Yes, and that question shows a great reason why these functions should be avoided.
 
12:20 PM
arara 5.1.0 is released!
4
 
12:49 PM
@PauloCereda does it work?
 
@DavidCarlisle nope :)
 
@PauloCereda hopefully you will finish your thesis before you get it arara working
 
@DavidCarlisle oh no
/quacks in despair
 
 
1 hour later…
2:21 PM
Is someone interested on giving github.com/Skillmon/tex_expkv-cs a look and maybe providing some feedback?
 
3:05 PM
\begin{itemize}
\item<1-> Proof:
\begin{align*}\sum_{i=0}^{n+1}(i+1)\cdot i&=\sum_{i=0}^{n}(i+1)\cdot i+(n+2)\cdot(n+1)\\
\uncover<2->{&=\frac{1}{3}n(n+1)(n+2)+(n+2)\cdot(n+1)\\}
\uncover<3->{&=(n+2)(n+1)\frac{1}{3}(n+3).}
\end{align*}
\end{itemize}
@mickep ^^^^^^ would this work?
 
@PauloCereda Great, looking into the repository I realized that my rule request for "arara" is the same as in an old issue (github.com/cereda/arara/issues/54)
 
@Rmano why the \cdots?
 
3:36 PM
I'm currently reading a dissertation written using MS Wort and it starts hurting my feelings.
 
@Skillmonlikestopanswers.xyz the same for me when I have to use it
user image
2
@PauloCereda Garda Lake (photo from FB)
 
@CarLaTeX ooh
 
I should have been there if coronavirus didn't appear...
But prof. van Duck's relatives seem to be very happy without turists
 
3:52 PM
@CarLaTeX most likely they are very hungry as well...
 
@Skillmonlikestopanswers.xyz Oh yes, feeding wild animals is forbidden, but of course no tourist cares...
 
@CarLaTeX I'd at least never feed them bread and it's been a while since I was in Italy, so -> Not my fault!
 
@Skillmonlikestopanswers.xyz Good! I think they will find a lot of fishes in the lake, and are happy not to be disturbed. I saw people who went close to a swan nest to do a selfie, of course the swan didn't agree
 
@CarLaTeX It looks like they practice social distancing.
@CarLaTeX I don't think mallards eat fish.
 
@HaraldHanche-Olsen Hahaha ducks love rules
@HaraldHanche-Olsen You're right, they are mainly vegetarian but eat also little fishes
 
4:18 PM
user image
4
@JosephWright you've been spotted in Italy! ^^
@CarLaTeX ^^
 
5:13 PM
@PauloCereda He's very happy going around without humans
 
5:31 PM
user image
8
Wheee! More palindromes.
 
@barbarabeeton yaaaaay
 
5:45 PM
@Skillmonlikestopanswers.xyz no idea, just copied and pasted @manooooh example and added the \uncovers... ;-)
 
6:33 PM
Does someone volunteer to write test files for me?
 
@Skillmonlikestopanswers.xyz I'd help, but I think I am quite lost with all the expandable and no-expandable key-value stuff... I'd need a "101 primer". Quite advanced stuff...
 
6:48 PM
user image
3
@CarLaTeX ^^^^ Sent by my sister, from a little village in the hills near Spezia...
 
@Rmano not so complicated actually. IMHO, the interface is pretty straight forward. The most confusing thing is that there are two steps of key-defining, the first being primary keys which correspond to what the macro really has available as arguments, the second being, well, secondary keys, which can combine or short-cut primary ones.
 
@Skillmonlikestopanswers.xyz Hmm... I am too lost on this; I'd need a kind of example usage. I'll read the expkv manual and see if I can understand it...
 
@Rmano you don't have to read expkv to understand expkv-cs (I hope).
 
@Skillmonlikestopanswers.xyz Ok I'll look at it. A suggestion --- if you add a compiled manual .pdf files to the releases you can help a lot the casual reader... My TeXLive is normally 2017 and so I have to go to my experimental texlive trees to even compile it...
 
@Skillmonlikestopanswers.xyz I will never be able to use your package - I can't pronounce the name ;-) Couldn't you have called it expandkv or something else with a few more vocales?
 
7:01 PM
@Rmano well, releases are only to CTAN, really. The github tags are more for myself than for actual release. And I didn't set up a build bot to create the documentation remotely, and don't want to include it in the git.
@UlrikeFischer exp-kai-vi.
@UlrikeFischer I think that's easier to pronounce than pssnfss.
 
@Skillmonlikestopanswers.xyz I never get this package right too, but as one doesn't have to load it ...
 
@UlrikeFischer should I upload a wrapper package named "expandable-key-value-for-ulrike"?
2
 
@Skillmonlikestopanswers.xyz well egreg has an option ;-)
 
@Skillmonlikestopanswers.xyz I agree with @UlrikeFischer. Get a more pronouncable name!
 
@AlanMunn two packages are already released for months. I'm afraid it's too late. Also, I like the name.
 
7:08 PM
@Skillmonlikestopanswers.xyz Oh well. :)
 
@Rmano Ooohhh cinghialini!
@Rmano Btw, it's curious people from La Spezia call it Spezia (the rest of Italy add "La")
 
@CarLaTeX Yes, fun, isn't it? (We really call it Speza, /ˈspɛza/, but well..)
 
@Rmano Yes, I have a colleague whose husband is from La Spezia, and every time she says "I go to Spezia" it sounds strange to us!
 
7:40 PM
@Skillmonlikestopanswers.xyz rabbitkv
@Rmano ooh
@Rmano ^^ I took this photo a while ago from my front door. This horse was literally playing peekaboo!
 
8:08 PM
@PauloCereda that would be a nice name ;-)
 
Something to waste time: youtube.com/watch?v=7Nn7NZI_LN4
5
 
8:33 PM
@UlrikeFischer I will not rebrand it just for a joke, sorry. And I think he suggested that name the last time, when I asked for a package name and no one suggested anything except rabbitkv, so I ended up with expkv and now all you do is nagging :(
 
@Skillmonlikestopanswers.xyz sorry I didn't want to nag you ;-). Don't worry, I made only a small joke.
 
9:04 PM
@UlrikeFischer don't worry. I don't really am sad :)
@PauloCereda and now I found a name! blowfishkv
 
9:47 PM
@Skillmonlikestopanswers.xyz Sounds dangerous. :)
 
@PauloCereda :-) wow
 
10:19 PM
@PauloCereda
plain and context users should think themselves lucky that they are spared the duck plague. — David Carlisle 18 mins ago
 
@DavidCarlisle oh no
@barbarabeeton ooh
 
10:39 PM
@DavidCarlisle no dinner for them?
 
@UlrikeFischer oh no
 
@UlrikeFischer too bad. First come, first served, as the saying goes.
 
@DavidCarlisle oh no
 
@DavidCarlisle so all ducks for you?
 
@UlrikeFischer tikzducks look too rubbery for my taste, I prefer them crispy
 
10:43 PM
@DavidCarlisle oh no
 
@AlanMunn -- If that's anything like pufferfish (= fugu), it's seriously poisonous.
 
11:10 PM
@Rmano it works like a charm!! I didn't know the existence of \uncover, moreover we could use align* inside itemize!! I like it so much, thank you
@CarLaTeX yaaay
 
@manooooh :)
 
@Skillmonlikestopanswers.xyz hello. I am interested in giving you feedback, but I don't know what is the repo about, moreover I have never used expkv-cs. Do you want feedback to a particular line of code, or smt like that?
 
11:53 PM
@barbarabeeton I accepted Sebastiano's mathrsfs answer. But there is a catch, which I had to mention in the comments to Seb's answer.
 

« first day (3442 days earlier)      last day (1485 days later) »