« first day (1608 days earlier)      last day (3310 days later) » 

12:13 AM
@JosephWright Thanks; I added a comment explaining the situation. Probably I should load l3str along with xpatch, but …
 
yo'
@PauloCereda I did not. The whole thing just shows that it's money that drive sports, not sport. What the other team did was a true shit.
 
1:13 AM
I think there's a bug with mpinclude in KOMA-Script
\documentclass{scrbook}
\usepackage{kantlipsum}
\KOMAoptions{mpinclude}
\begin{document}
\chapter{Kant}
\kant
\end{document}
The \KOMAoptions{mpinclude} moves the headers and footers away.
 
2:04 AM
Hi Tex Gurus,
I have a document set using mathpazo. Now I have code listings I want to include using minted, that contain unicode characters like Π or ⦃. 1.) Can I set them nicely in a TT font without using xelatex? 2.) If I'll use xelatex and fontspec, can I somehow prevent the rest of the document from using TT or OT fonts but instead stay the same as what it looks like now? I'm not very satisfied with the appearance of several OT alternatives I tried.
 
 
6 hours later…
8:03 AM
@yo' Money isn't actually a surprise. People are now finding how much millions in bribes happened in the last World Cup in Brazil.
 
yo'
@PauloCereda yeah. Let's stick to frisbee for a while, there's not much money involved. But once it gets spoiled, we'll have to find yet something new.
 
@yo' :)
 
8:33 AM
What is the recommended method of getting footnotes at the bottom of the page when using \raggedbottom? I have a long standing request for memoir to implement that. And I'm finally going to have a look at it. There is the fnpos package which seems to do what is needed (and is very simple). So I'm just asking is there is a preferred method of doing is and whether there are classes already providing this (which one can get inspiration from)?
 
 
1 hour later…
yo'
9:44 AM
@daleif I'll have a look what I do for a similar problem I've been solving in \twocolumn
@daleif So it seems that I modify the output routine directly by tweaking \@makecol that is responsible for this in \twocolumn ...
 
@daleif not sure if it's recommended or not but \usepackage[bottom]{footmisc} has been around since the dawn of time
 
@yo' that is exactly what fnpos does
 
yo'
@daleif well, it makes sense to me, after all... Just you probably should just use the code, not the package, so that you have control over what's going on...
 
@DavidCarlisle as far as I remember there are some elements in it that are not compatible with memoir (I usually never use it). But perhaps I can get som inspiration from it.
@yo' the code part of fnpos is 40 lines ;-), but it is also from '99 so there might be things missing (which is why I'm asking), for example things from fixltx2e?
 
yo'
@daleif fixltx2e is @David's middle name, you better ask him :-)
 
9:52 AM
@yo' hehe
 
@daleif just compared it to the 2015 \@makecol and it looks sort of reasonable, didn't try it though
 
yo'
For comparison, my version of \@makecol:
  \gdef\@makecol{%
    \ifvoid\footins
      \setbox\@outputbox\box\@cclv
    \else
      \setbox\@outputbox\vbox{%
        \boxmaxdepth \@maxdepth
        \unvbox\@cclv
        % here, we add 4 lines so that \box\@kludgeins is inserted before \box\footins
        \ifvbox\@kludgeins
          \box\@kludgeins
          \vfill
        \fi
        \vskip \skip\footins
        \color@begingroup
          \normalcolor
          \footnoterule
          \unvbox\footins
        \color@endgroup
       }%
 
@DavidCarlisle thanks. I'll see if I can implement an addition. Then we can let the public test it.
 
yo'
\label -- I think I just found something uglier than Comic Sans.
 
@daleif @DavidCarlisle @yo' not sure I'm awake already, but rather than changing the OR code couldn't one simply change \skip\footins to contain some "filll"?
 
yo'
10:04 AM
@FrankMittelbach IIRC I tried this and it failed, but lemme check.
 
@FrankMittelbach footmisc puts the footnotes under bottom floats
 
@DavidCarlisle that's a different requirement, so yes if you want to do that then you need to mod the OR
 
@FrankMittelbach running a ctan build here to check before checkin in but I think I've done the reference to gnats in headers, also plan to change ...{base} in the maintainedby banner to ...{LaTeX} (since that's what the gnats for requires, that OK?)
 
yo'
ah, I'm solving a bit different problem it seems
 
@FrankMittelbach I have no voice though (and have just been put on a course of various things by the doctor, so I'm off work:-(
 
10:09 AM
@DavidCarlisle right you are ... it should be "latex"
@DavidCarlisle well you don't talk to your computer do you?
all the best for a speedy recovery though - hope it doesn't hurt too much
 
@FrankMittelbach mm lowercase, will fix to lowercase before checkin in.
 
@DavidCarlisle well it is lowercase on gnats not sure LaTeX would be accepted
 
@FrankMittelbach true but that's why I decided it wasn't worth going to the office. It's been "croaky" all week but this morning It's basically not there at all,
@FrankMittelbach yes, needs to be lowercase, I'll let the build checks finish though now as they are three quarters through, then lc them.
 
10:45 AM
@David: get well, buddy. <3
 
10:55 AM
@DavidCarlisle You going to upload to DropBox?
 
@JosephWright I wasn't planning to but I could if you want?
 
@DavidCarlisle I'll do it: let me know when checkins are finished
 
@JosephWright I just spotted a couple of dates in readme files then done..
 
@DavidCarlisle OK
 
@JosephWright I'll probably spot something in a bit but I think that if that builds for you it's good to go to dropbox.
 
11:01 AM
@DavidCarlisle :-)
 
@JosephWright I did a build ctan a few minutes ago, just doing another now for checking "can't go wrong edits" like 2014->2015 but if you push yours to dropbox that's probably safest.
 
@DavidCarlisle OK
 
11:30 AM
Hello guys, may I kindly direct your attention towards tex.stackexchange.com/questions/235299/…
A user very kindly posted a solution that almost work, but there is a problem with ambiguous header names being uniquely labelled by the pgfplotstables package in an undesirable way
 
 
1 hour later…
yo'
1:00 PM
I AM NERVOUS! WHO CAN HELP ME!?
:D
 
@yo' If you tell me how to underline a header, I'll tell you how to how to un-get nervous :)
 
yo'
@topskip soul? Actually, it may be the solution for both the two of us: Have a good soul :D
now I gotta go, the seminar is in 20 minutes
 
1:37 PM
@PauloCereda quack!!! ^^^
 
@PaulGessler lol
 
2:03 PM
Heya
@JosephWright Yo, quick Q do you know how to draw an ellipsoid with pgfplots? I am trying to draw x^2/9 + y^2/4 = 1
 
2:45 PM
Or rather i am trying to plot $z = x^2 + y^2$, under the restriction that (x/3)^2+(y/4)^2 - 1 = 0
 
yo'
2:59 PM
@N3buchadnezzar Yo! Can't you make it parametric? y = 4 * (1-(x/3)^2)^(1/2) ?
 
@yo' That's what I did =)
@yo' Any idea how to make it visually clearer? I know it looks like a pringles, but I am not sure the students I am TA'ing for sees it that way.. =)
 
yo'
@N3buchadnezzar make a 3d image that you can grab and rotate during the talk?
 
@yo' If only I were that good at beamer/tikz/pgfplots/whatever works..
 
yo'
@N3buchadnezzar none of these I think :p
 
Hi guys, I'm using utf8 input encoding and I have minted code listings using unicode and Ubuntu Mono as a Font. Ubuntu Mono actually has quite a lot of characters, but nevertheless symbols like ⦃ are only shown as boxes. What am I doing wrong? Do I just have to convert my files to UTF16?
 
3:06 PM
@yo' :p I know you can use the animate package, but not sure how that interacts with 3d plots
 
yo'
@N3buchadnezzar well, I would get out of LaTeX for this.
 
@yo' =P
 
yo'
@N3buchadnezzar I would be able to do this in Sage, but that's linux-only, you're on windoze. Moreover, the beast has got 4GB now
 
@javra make small complete example and ask a question on site. It's much easier to test an example and vastly more people will see your question
 
@DavidCarlisle I'll do that, thank you!
 
3:11 PM
@javra if you are using pdflatex rather than xetex you need to find a font with those characters in positions 0-255 (or re-encode an existing font so that is the case)
 
@yo' Isn't there a cloud-based Sage?
 
@DAvi
@DavidCarlisle I should have said, I am using xetex.
 
@javra oh you asked same question just as i was going to bed last night when you said "without using xelatex?` ...?
 
I found a way to use mathpazo and TeX Gyre Pagella which looks fine, so I changed my decision on that :)
 
3:38 PM
@LaRiFaRi I can't even remember what was going on in tex.stackexchange.com/questions/171782/…
 
yo'
@TorbjørnT. I doubt you can extract the 3D images from sagecloud as 3d images that you can rotate
 
@yo' Nice to see that you are alive. :-)
 
yo'
@Johannes_B yes, I am. Exhausted, but alive.
 
@yo' I meant showing it directly in Sagecloud.
 
yo'
@TorbjørnT. ah, that's unreliable, but fine if it's not crucial. It should work, probably (I dunno, my local Sage install opens some external program for 3D drawings
 
3:54 PM
@yo' I see.
 
4:13 PM
@Johannes_B No Problem. Just wanted to set the link in comment... To have the fix at hand and to offer the issue tracker for other users/future problems...
 
4:25 PM
This seems off topic, nevertheless, can anybody say something about this and give some helpful advice?
0
Q: Why are some Unicode characters missing when using XeTeX and Ubuntu Mono?

javraI'm trying to typeset a document using minted code listings that contain quite some amount of non-standard Unicode characters. I'd like to use Ubuntu Mono as a monospaced font. The following supresses unicode characters: \documentclass{book} \usepackage{minted} \usepackage{fontspec} \setmonofont...

 
yo'
@JosephWright Are there any plans for \box_overlap_center:n ?
 
4:49 PM
@yo' \def\box_overlap_center:n\makebox[0pt] :-)
@yo' were we any help?
 
yo'
@DavidCarlisle \cs_gset_eq:nn \box_overlap_center:n \clap
or (since I want the box to have some width), use \hss (which, to my surprise, doesn't have an L3 equivalent)
 
@yo' hey it's a "i've got more underscores than you" contest...
 
yo'
@DavidCarlisle of course. Anyways, yours wouldn't work, misses some braces :D
 
@yo' It was an educational example, not production code
 
yo'
@DavidCarlisle excuses excuses
 
5:09 PM
\begin{large} test \end{large} and \begin{itshape} text \end{itshape}
@DavidCarlisle ? ^^^^^^^^^confused?
 
yo'
@Johannes_B \begin{par} is my favourite :D
 
@yo' I found teh above in LaTeX for complete novices. I know it is friday, but ... Ähm ...
 
@Johannes_B well it works, where's it from?
 
@PaulGessler LOL
 
@DavidCarlisle See my last comment, LaTeX for complete novices by Nicola
 
5:13 PM
@Johannes_B it is a part of the latex design that you can use any command as an environment, so depends what she's demonstrating, is she demonstrating that?
 
@DavidCarlisle No, it is the basics of text formatting commands.
 
@Johannes_B well as I say it's perfectly standard latex
 
@DavidCarlisle Though valid, isn't that discouraged?
 
yo'
@Johannes_B That's unfortunate, at least to say. What about missing or multiple spaces?
 
@Johannes_B not necessarily, why go to the trouble of implementing something only to discourage it?
 
yo'
5:16 PM
This produces a double space of course: Hello \begin{sffamily} world \end{sffamily}
 
@Johannes_B although you have to be careful about spaces as @yo' is hinting, but that bad space comes from the white space in the input, not the environment syntax
 
yo'
@DavidCarlisle though it's one of the few cases where space around \begin/\end matters.
 
@yo' apart from the 20000 rep egreg's got from putting % after \end{minipage}
 
@DavidCarlisle @yo That white space isn't the issue, there is none in the original pdf. I introduced them here.
 
@Johannes_B so @NicolaTalbot remains virtuous and you have sinned, so long as we know that's OK.
 
yo'
5:19 PM
@DavidCarlisle Well, IMHO \endminipage should have been doing \ignorespacesafterend or how's it called.
@DavidCarlisle and you miss a 0 there :-D
 
@DavidCarlisle I am still a bit confused, as i have always thought that using the switches as environments was discouraged.
 
@yo' not really. It's a simple rule that box commands like minipage, parbox, scalebox, mbox,... have no special spacing behaviour, they are just spaced like X
 
yo'
@DavidCarlisle well, the ones taking an argument, fine. But minipage is different.
but I know -- what about tabular, then, for instance.
 
@yo' people make exactly same error with
\parbox{.5\textwidth}{..}
\parbox{.5\textwidth}{..}
 
yo'
@DavidCarlisle yeah, but to me it feels different. But it may be only me :D
 
5:22 PM
@yo' and wonder why it doesn't fit. minipage has to work like \parbox
@yo' tabular is same, if you put a space after \end{tabular} it stays and that is surely needed, people use small tabular stacks inline.
 
yo'
@DavidCarlisle yeah, I know.
 
@Johannes_B they need to be used with care but that have their uses, especially for a long run in a custom font, using \begin{bfseries}.... \end{bfseries} makes the end a lot clearer than a stray } several lines later
 
@DavidCarlisle Well, true. But wouldn't you rather define a new semantic environment? :-p
 
@Johannes_B well I'd probably have written the document in XML
3
 
@DavidCarlisle :-D
 
5:28 PM
@JosephWright are we done?
 
@DavidCarlisle Yes
 
@JosephWright maybe I'll suggest leave it a day or so for anyone to test and then push to ctan over weekend?
 
5:57 PM
@DavidCarlisle -- you've got mail. (a plea for help.)
 
@barbarabeeton OK will look in a bit
 
yo'
well, gotta go. see you later!
 
@DavidCarlisle Cool
@DavidCarlisle Who usually handles CTAN uploads?
 
6:27 PM
@JosephWright you?
@JosephWright not sure who did 2014/05, Frank did the later one with the prrof reading corrections.
@JosephWright I think ctan and I finally came to an understanding after I updated etex, so I could do it, don't mind really.
@JosephWright I see dffischer's still keeping you active on l3build
 
7:01 PM
@DavidCarlisle That was my guess
@DavidCarlisle They are used to me: I'm a 'frequent flyer'
@DavidCarlisle Yes: at a first reading I'm not sure he (?) is right, but will give it some more thought
 
hi all, could some miktex user take a look at the issue from the comment on this answer?:
3
A: error using pgfsysdriver with tex4ht, only shows up with texlive 2014, ok with texlive 2013

michal.h21This question still doesn't have an answer, although it was answered in comments and in the question itself. I will post the answer here, because duplicate question was posted today and it can't be closed as duplicate as long as this question doesn't have accepted or upvoted answer. This issue w...

 
@DavidCarlisle Will need to check what the usual 'announcement text' formula is (I have a pretty rigid one for L3 work)
@michal.h21 Will do
 
@JosephWright thanks
 
@JosephWright it used to be more or less, "read ltnewsxx" :-) Frank may want to word it anyway
 
@DavidCarlisle Yes
@michal.h21 'Works for me'
 
7:28 PM
@barbarabeeton you got [6]
 
@JosephWright I figured out that he is right, string {?nl} is used in place of new line in the svg file, but it is not displayed, so you can't see it unless you inspect svg source
 
8:03 PM
@DavidCarlisle -- so i do. fast work, sir, you who talks about the "one with the prrof reading corrections." (but somehow you manage to spell your control sequences correctly. hmmm.)
 
@barbarabeeton latex tells me if I get command names wrong, it is less fussy about the text
 
\aftergroup overflow error...
 
@topskip don't be a wimp, it's only 7
@topskip actually @wipet's version is quite nice.
 
@DavidCarlisle Ref?
 
0
A: Underline a page head

wipetMy \myhrule for rules in headers looks slight different than David's. The position of the heading text doesn't depend on the depth of the text. And, of course, I needn't any additional package. \makeatletter \def\myhrule{\lower1ex\null\vadjust{\hrule}} \renewcommand\ps@headings{% \def\@evenhea...

@DavidCarlisle Is it different from your first answer?
 
8:12 PM
@topskip better but don't tell him that:-)
@topskip and because he doesn't need aftergroup initially, it only needs one for colour.
 
@DavidCarlisle I'll try his answer
 
@egreg I didn't realise it did that! But I still think obsolete packages should be dropped from TeX distributions. Most users don't bother to keep track of package changes and carry on using package foo year after year without realising that it's obsolete until things go wrong and people say, why on earth are you still using foo, that went obsolete years ago.
At least this way it draws users attention to the fact that the package is obsolete. They can then download the obsolete package from CTAN with the full knowledge that it's obsolete.
 
Sorry @DavidCarlisle for using wipet's solution now :)
 
@topskip tell him who recommended it:-)
@wipet I got you 15 points ^^^ :-)
 
I have added a comment to his answer... tex.stackexchange.com/a/235419
 
8:24 PM
Unclear or off-topic?
2
Q: Accidentally Converted Latex into Binary

CharlotteMy .tex file, I'm pretty sure has become a binary file. It begins with this: \%PDF-1.5 \%ÐÔÅØ 6 0 obj << /Length 1662 /Filter /FlateDecode >> stream and there's a lot of odd symbols. I'm using TeXstudio to compile my documents and when I click the 'view' button I get the document as it l...

 
@Johannes_B Leslie Lamport has \begin{em} ... \end{em} in "LaTeX a document preparation system". I think if something's in the user guide and reference manual it's a fairly safe assumption that it's part of the system's design.
 
@topskip you should get a job in the secret service, you are obviously good at keeping secrets
@NicolaTalbot not only that, it's implemented in the code:-)
 
@DavidCarlisle He'll neve find out!!!
 
@topskip That's OK then.
 
@DavidCarlisle It's nice to know that I can sometimes get things right :-)
 
8:27 PM
@NicolaTalbot although white space can be tricky to handle (or at least tricky to remember to handle) in that form, especially for size change commands
 
@DavidCarlisle Yes, this is true. White space often trips people up (which is why I decided to put a note about it in the introduction of my new LaTeX book).
 
8:39 PM
@NicolaTalbot Well, if a package is removed, all documents using it are invalidated.
 
@NicolaTalbot Ok, good point. But why did i thought it is discouraged then? Strange.
 
@egreg But it's still on CTAN. The missing package error alerts the user that something has changed about the package. The user looks it up, finds out it's obsolete and can download and install it on ~/texmf or wherever and it remains there untouched by TL but the user now realises it's obsolete.
 
@NicolaTalbot Can you just \typeout a warning similar to the way amsmath warns if you try to use \atop?
 
@Johannes_B In most cases you only need to change the font for a small selection of words in which case it's easier to just use a text-block command like \textbf.
 
@NicolaTalbot I am a friend of semantic markup. I wouldn't use textbf within the document environment directly.
 
8:45 PM
@AndrewCashner I've noticed that many users tend not to look at the transcript. In fact, some users don't even appear to pay any attention to error messages either and just run LaTeX in batch mode.
 
@NicolaTalbot It does seem that way.
 
@Johannes_B Yes, but even if you do, say, \newcommand{\keyword}[1]{\textbf{#1}} it's still easier than \newcommand{\keyword}[1]{\begin{bfseries}#1\end{bfseries}} but if you're designing, say, a class or package that prints some boilerplate text in, say, a small font it then might be easier to use a declaration or environment.
 
@NicolaTalbot yes although users have forgotten how to install packages as it is required so rarely, and it's a bigger headache for things like arXiv it means that have to never update or keep track of which extra packages they need to add back after updating. (arXiv is big enough it may just record which tex distribution it used) but generally document repository management is harder if packages go.
 
@NicolaTalbot Sure, defining a new environment using bfseries is ok.
 
@DavidCarlisle @egreg @yo' @PauloCereda I thank the TeX community & each of you in particular in the acknowledgments of my PhD dissertation, which I defended on the 11th. Now if you need any music doctoring you know who to call.
 
8:51 PM
@AndrewCashner thanks:-) @egreg would like you to doctor all music written in the last 200 years
 
@DavidCarlisle But TL just gets bigger and bigger every year. When I first bought my computer I thought 2TB was ample and with the standard percentage split between the partitions there should have been plenty of space on /usr/ etc for applications and /home/ for all my stuff including some extremely large image files. TL2012 fitted on /usr/ but TL2013 didn't so I've had to move it to /home/. It's going to get to the point where I'll need to buy a hard disk just for TL!
 
@NicolaTalbot hard disks get bigger faster (hmm except when I switched to ssd and it got smaller;-) But I've only ever tried to remove two of my packages from ctan, and they both came back. (admitedly that was remove from ctan not just from TL)
 
@DavidCarlisle LOL I specialize in 17th century so that's okay
 
@AndrewCashner Congratulations (forgot to say!)
 
@DavidCarlisle Thanks! I wanted to ask you about XML. For the diss LaTeX was ideal because I am basically self-publishing a PDF. For future work (articles, books) I want a highly portable, fully semantic format so I can send things to publishers in whatever format they desire. Is TEI XML the way to go?
 
8:57 PM
@AndrewCashner Congratulations! Now go and listen to the Matthäuspassion. :)
 
@DavidCarlisle :-) I'm evidently going to have to sell a lot more books to keep up with the hard disk requirements for TL! But I do think it's the only practical way to alert users to the fact that they're using obsolete code otherwise they only find out when they encounter an issue with some conflicting package and they get told "why on earth are you still using foo.sty?"
@AndrewCashner Congratulations!
 
@NicolaTalbot Sorry, but it doesn't work. The good thing you could do is to add a big warning to datetime. Some people will continue to use it nonetheless, but savvy people will understand and switch.
@NicolaTalbot Recall that some people can only install a distribution provided TeX Live (say they are in a strictly controlled environment where they aren't allowed to add packages other than the Debian provided).
 
@NicolaTalbot Thanks!
@NicolaTalbot I used bibleref throughout (my work is on religious music so there are a lot of Biblical citations). I only wish you included a full list of the abbreviations in the documentation.
 
@egreg Don't they even permit TEXMF-HOME? What if the user wants to write their own custom package. That doesn't make sense.
 
@egreg Does this sound familiar? Joan Cererols, "Ay que dolor," Tono a la pasión de Jesucristo, ca. 1660: youtube.com/watch?v=MIiZ1j2MmN0
 
9:05 PM
@NicolaTalbot Sorry, but it's your position that doesn't make sense. A user who has a document written three years ago, suddenly finds it's not compiling any more. Recall that many people use LaTeX as an archival format.
@NicolaTalbot And what about somebody who must use several machines?
 
Does anybody have a question at hand that states to load graphicx to allow image insertion?
2
Q: Include eps figures in class: report

user2015933\documentclass[a4paper,12pt]{report} \usepackage[paper=a4paper]{geometry} \usepackage[draft]{hyperref} \begin{document} \begin{figure} \centering \includegraphics[scale=0.5]{graphs/power.eps} \caption{test} \label{fig:power} \end{figure} \end{document} I used the linux command ...

 
@NicolaTalbot At a minimum, people will hate you. ;-)
 
@AndrewCashner Not really satisfied with that one.
 
@egreg I have documents dated back to LaTeX2.09 that contain packages that are on CTAN but not on TL. I'm not going to get angry that I have to fetch those packages from CTAN when I decided to recompile them.
@egreg Well, that will be very nice of people to do that after all the years I've spent writing free code that I could've chosen not to distribute.
 
9:33 PM
@NicolaTalbot yes so do I, but we don't count, most users don't write latex books, or don't write latex. It's not going to be clear to most people when documents fail that a package not available vial tl or miktex update is in fact on ctan somewhere. There's a reason we still distribute slides.cls:-) If you are worried about space how much would a package giving the old interface with the new code take (like epsfig which matches the old latex2.09 package, but is just a simple wrapper around grahics)
 
@topskip Thanks. But maybe you are too hasty. We are waiting to egreg's solution of the type \explsyntaxon...\explsyntaxoff :)
 
@wipet I'd simply go with \usepackage{fancyhdr}.
 
@AndrewCashner It depends, like any other form of communication, it helps if you use the same language as the people you are communicating with:-) In the mathematical/computer science areas I was in when working in those areas, that meant latex, there are areas of the humanities where TEI (and the oxygen editor) seem to be taking over, I'm not really an expert on TEI but its strengths (as I understand it) are annotating xml forms of existing manuscripts.
 
@egreg I never understand the sense of fancyhdr. When I have the "input point" to the output routine in the form \headline or something similar and I know the \hbox \vbox arithmetic then I don't need any more.
 
@AndrewCashner and I know nothing about Music requirements for academic publishing:-) Basically I'd use latex if you are used to it but write it in a form that can be easily dumped to something else...
 
9:39 PM
@wipet Easier interface?
 
@wipet but you don't understand the point of latex either so that's consistent
@wipet your comment about latex colour being complicated compared to the simple plain headline being typical, yes the plain one is simpler but it only works in simple cases, if you want colour to break over a page without leaking into the headline, you need some groups and colour settings in the headline, so the simpler plain version is just an illusion.
 
@DavidCarlisle In musicology everyone except maybe six people uses MS Word. Oxford University Press, Univ. of Chicago Press, both ask for manuscript submissions in Word format. So whatever I do has to be convertible to Word, but for my own sake it also needs to be in a plain-text source and can be used with free/libre software. I tried to make a TEI document but couldn't do anything with it without knowing XSLT. Maybe keeping my LaTeX semantic and simple and using tex4ht would be easier.
 
10:03 PM
@DavidCarlisle LaTeX can continue being my little secret and everyone else can think I use Word.
 
@AndrewCashner to be honest I probably wouldn't use general convertor such as tex4ht or latexml, for an internal document recently submitted in latex I just wrote some custom perl for the subset of latex really used, if the latex is well structured you can get simpler cleaner html than a general convertor can get, and its easier (without knowing the details of tex4ht etc) to drop in special convertors (such as listings -> pygments in my case) but if a general convertor to word works, that's fine too
 
10:37 PM
@DavidCarlisle can I ask you a bash question?
 
@AlanMunn Maybe others can answer
 
@AlanMunn yes
 
@egreg I'm happy for anyone to help.
So I want to automate some pdfcrop and convert commands in a script.
Why doesn't this do what I want:
for f in *-crop.pdf
  do myfile="${f##*/}"
  convert -density 600 "$f" "$myfile".png
done
I want to end up with foo-crop.png not foo-crop.pdf.png`
 
@AlanMunn I'd use ${f/.pdf/.png} normally
 
10:53 PM
@AlanMunn The variable myfile still contains the whole file name
> for f in *-blx.bib; do myfile="${f##*/}";echo $myfile;done
bauerbib-blx.bib
clement-blx.bib
 
@AlanMunn "${f##*/}" is like basename, it removes directories but doesn't touch the extension
 
@DavidCarlisle Ok, so I was misunderstanding the term; no wonder it wasn't doing what I expected. But your version seems to give me an error.
 
@AlanMunn for f in *-blx.bib; do myfile="${f%%.*}";echo $myfile;done
 
@AlanMunn but since you are picking up with *-crop.pdf there won't be any path component so for f in *-crop.pdf; do convert -density 600 "$f" "${f/.pdf/.png}"; done
 
yo'
@AndrewCashner cool!
 
10:57 PM
@DavidCarlisle That gives me a syntax error.
 
@AlanMunn sure you have bash:
 for f in *-crop.pdf; do echo convert -density 600 "$f" "${f/.pdf/.png}"; done


produces


convert -density 600 aaa-crop.pdf aaa-crop.png
convert -density 600 bbb-crop.pdf bbb-crop.png
i get errors from ash (bad substitution) or csh (missing })
 
@DavidCarlisle It does for me too. But when I run the actual command, I get a syntax error.
 
@AlanMunn you mean if you delete echo? so its convert syntax that's wrong?
@AlanMunn what's the error?
@AlanMunn I just made aaa-crop.pdf and bbb-crop.pdf and they got converted here:-)
 
@DavidCarlisle Yes, that I can do. :)
@DavidCarlisle The error I get is : `syntax error near unexpected token `convert'
/Users/alan/bin/crop-png.sh: line 4: ` convert -density 600 "$f" "${f/.pdf/.png}";`
 
@AlanMunn No I meant the above script looped and converted them both
@AlanMunn that mean you have the line endings around do wrong (or you forgot do) simpler on one line with ; as above ;-)
@AlanMunn omitting do is only way I can get that just now
./a-test: line 2: syntax error near unexpected token convert'`
 
11:16 PM
@DavidCarlisle Damn semicolon...
@DavidCarlisle Now it works. Thanks. It's been too long a day.
 
yo'
@AlanMunn tell me anything about it :D
 
@yo' you didn't answer the question earlier, how was your morning?
 
yo'
@DavidCarlisle it was great. If you mean the seminar, it was in the afternoon and went well I'd say.
 
@yo' it would have been tricky for me to give a seminar today:-)
 
yo'
@DavidCarlisle ah yeah. Google translate doesn't speak sign language? :D
 
11:25 PM
@yo' it probably does:-) Or i suppose I could have use that scout semaphore generator site:-)
 
yo'
:D
 
yo'
11:51 PM
ok, it's time to go to bed and catch some sleep finally
 

« first day (1608 days earlier)      last day (3310 days later) »