499 reputation
515
bio website
location
age
visits member for 2 years, 9 months
seen 2 days ago

I have a PhD in economics. I mostly use Python, Maple, Matlab, Stata, and more recently R.


Dec
22
comment Pass a class/package/theme option to R with knitr
If going from LaTeX to R is not straightforward, it may be prone to errors for someone like me, so perhaps I'd better move on from this idea. However, just in case, I'll leave the question open a little while longer. Thanks again!
Dec
22
comment Pass a class/package/theme option to R with knitr
Thanks! My intent was to set up the theme such that a user familiar with LaTeX, but not perhaps too familiar with R and knitr, would easily switch the styles from French to US. If the user has to toggle French <- 1 and French <- 0, I think it is equally convenient to toggle euro <- euroFrench and dollar <- dollarFrench. The 'Frenchness' or otherwise of the theme is fully located in the R code, so there is no real need to go from R to LaTeX. However, it might be useful in another application to have your example.
Dec
21
revised Pass a class/package/theme option to R with knitr
removed comment that appears to be unfounded: the problem is with the dollar formatter function in library scales that does too much rounding...
Dec
20
asked Pass a class/package/theme option to R with knitr
Dec
20
comment Showcase TeX Typography for TUG's Calendar
@Marc van Dongen: Beautiful. I couldn't find any information about \usepackage{mempalatino} ?
Dec
16
comment Flexible inclusion of floating environments from external files
My initial reaction was that saving the caption was a bit of an overkill, but then I realized that it could have some pretty useful applications. For instance, to reveal long captions stepwise over several frames; to have a question/answer type layout... So it's a pretty useful feature to have. :-)
Dec
16
comment Flexible inclusion of floating environments from external files
The sidewaysfigure environment apparently adds a \newpage at the start, which is not always desirable (as in your MWE, where the sideways figure is surrounded by a lot of white space), but there is a hvfloat package that I plan to start using instead, it doesn't add a break and is also more flexible, allowing figures to be inserted with non-straight angles, which may useful one day, maybe.
Dec
16
accepted Flexible inclusion of floating environments from external files
Dec
16
comment Flexible inclusion of floating environments from external files
Thanks for the edit, that worked! I didn't expect the solution to be so involved, but I guess it was worth it ;-)
Dec
16
comment \beamergotobutton size
@GonzaloMedina, Thanks! Actually, I guess I've enjoyed tweaking the appearance of the buttons, and have tucked away the code in my customized sty file, where I shall probably forget it for a while. :-) I got a reasonably low-profile button with \node[inner xsep = 5pt, draw = structure!90, fill = white, rounded corners = 5pt]{\color{structure!90}\tiny\insertbuttontext};} together with [yshift=7pt,xshift=0pt]
Dec
16
comment \beamergotobutton size
@Gonzalo I wanted something simple, so I tried \setbeamerfont{button}{size=\Huge} but while that changes the text inside the button, it doesn't alter the button itself, so I guess there is no one-liner for this one? (one is always reluctant to adding a package for a single feature and looks for class-based solutions as much as possible, having said that I'm a great fan of TikZ)
Dec
16
comment \Beamergotobutton's color
Probably your MWE could have been more M and less WE ;-) Thanks for following up with an answer +1.
Dec
16
comment How to remove footline on the title page of beamer slides
instead of \addtocounter{framenumber}{-1}, you can tag the frames you don't want to count, \begin{frame}[label=intro,noframenumbering]
Dec
16
comment Putting frame counter in the footer of the [beamer] presentation without a theme
+1 for "I don't use any theme"
Dec
16
comment How to iterate through the name of files in a folder
@RyanReich, imho it can be convenient to do everything in one action, for this sort of reason DVD players can usually read CDs so you don't have to buy two machines, even though listening to CDs in a DVD player is a questionable practice.
Dec
13
comment Flexible inclusion of floating environments from external files
if I do as you say, it doesn't compile, if I use the code \begin{sidewaysfigure}[#1] \centering\usebox{\csname\FigureBoxLabel\endcsname} \caption{\csname\FigureCaptionLabel\endcsname}\end{sidewaysfigure} instead, then it works, but all figures are then printed sideways. Perhaps adding a sideways option in the \recallFigure command with an if statement to either use \ReciteFigure as your original code does or \begin{sidewaysfigure} if the sideways option was passed. I'll see if I can manage it with my limited skill set. Thanks!
Dec
12
comment Flexible inclusion of floating environments from external files
I have played around a little and this is very promising. I've had errors when trying to insert a sidewaysfigure environment (that was my OP, have you tested with a sidewaysfigure?) and/or with the siunitx package. Also it doesn't seem to take \lipsum[2] in the caption (which is not a problem).
Dec
11
comment Flexible inclusion of floating environments from external files
thanks for the answer. I'll need a bit of time to process it and test it, not least because I'm busy with other things today, but will get back to you asap, hopefully before the weekend. It looks very promising!
Dec
11
comment Flexible inclusion of floating environments from external files
@cfr, thanks for the tip. I will look into the beamer class after I get a solution for the article class, and hopefully learn enough in the process to hack the \includeonlyframes command that is the closest thing I've seen to my purpose. Will probably ask a separate question later on.
Dec
10
comment Flexible inclusion of floating environments from external files
@StevenB.Segletes, thanks, will look into it. To explain my purpose in different words: imagine I have a project resulting in 100 figures and 100 tables updated daily and I write several articles and beamer presentations based on different parts of the projects. I do not want to copy-paste figure/table code that could become outdated, but want to insert them on-the-fly by reference to their label.