« first day (1635 days earlier)      last day (3303 days later) » 

12:02 AM
@Canageek Also can definitely understand that. A friend of mine once said to me that Bobby Fischer (a chess grandmaster) had it.
 
 
2 hours later…
1:53 AM
0
Q: Use of .bib JabRef Reference from TeXstudio

NasimJabref generates a .bib reference file. How can I use this in the TeXstudio?

^^^ Duplicate of some basic BibTeX-usage question?
Searching using bibtex on this site isn't very productive.
 
3
Q: How to compile bibtex with TeXstudio?

GlouglouI am trying to use bibtex for the first time. I am on windows 7, using TeXstudio. I am trying to follow the steps of this (french) webpage : http://www.tuteurs.ens.fr/logiciels/latex/bibtex.html I have created a .bib file, put it in the right directory and written the code in my .tex file. Howev...

perhaps?
 
2:22 AM
@PaulGessler I think it's a baser question than that, but it'll be good to link
 
 
5 hours later…
7:33 AM
@egreg you may be an expert at trivia like drawing pictures with (along with everyone else and his dog, it seems) but I can do serious typesetting stuff like
 
0
Q: Image border is too high while the photo itself has narrow border

user1064929I am adding two images in a page, the first image is at top and then when placing second image, apparently, the Tex gives a very long border to the second image from both top and bottom. I attached the photo to indicate that the image itself has narrow border and then the long gap appears. here ...

Anyone want to solve this using the crystal ball method?
 
8:12 AM
@JosephWright isn't it just a vertically centred float column?
 
@DavidCarlisle Quite possibly
@DavidCarlisle Like I say, crystal ball currently required
 
@JosephWright some would say to wield the "close as unclear" hammer:-)
 
9:12 AM
@DavidCarlisle Cry havoc and let slip the dogs of war!
 
Weird conversation of TeXhax
 
@DavidCarlisle I can do and , manage , explain displays and , solve , … :P
 
@ChristianHupfer: so the downvoter strikes back? :)
Meta is surely a weird place sometimes.
I am nervous, I will fly tomorrow!
 
yo'
@PauloCereda That's ok. Just be at the airport well in advance. You can't miss anything by being there too early :)
 
@yo' Sure thing, I'll leave by tomorrow morning. :)
Is it too cold in Europe?
 
yo'
9:24 AM
@PauloCereda nah, now it's fine
 
@yo' ooh how fine is fine? :) About 20C? :)
 
@yo' Ah it's indeed fine! :) Thanks, pal!
 
yo'
@PauloCereda you're welcome
however, Barca is a seacoast, you can get some breeze in the evening :)
 
When I manage to host TUG in here, it will be winter for us. Be prepared to have some low temperatures of almost 18C. :)
 
9:27 AM
@PauloCereda Brrr!
 
@yo' ooh :)
@egreg I have a friend in João Pessoa who considers any temperature below 23C as insanely cold. :)
 
yo'
@PauloCereda lol
@PauloCereda I know a guy from Sweden who had to buy a jacket when he arrived in Greece, because he's never met seacoast humid winds. It was below zero in Sweden and about 10 in Greece!
 
@PauloCereda He'd enjoy a summer tour at North Cape.
 
@yo' Oh my!
@egreg :)
 
yo'
@PauloCereda well, he wears shorts and a T-shirt until about -5 :)
 
9:30 AM
@yo' LOL
 
10:15 AM
$ xetex etexuchar.tex
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015) (preloaded format=xetex)
 restricted \write18 enabled.
entering extended mode
(./etexuchar.tex
> \Uchar=\Uchar.
l.2 \show\Uchar

?
> \z=macro:
->A.
l.4 \edef\z{\Uchar 65} \show\z

?
 )
No pages of output.
Transcript written on etexuchar.log.
@JosephWright ^^^^
 
yo'
0
Q: Can I get $$...$$ to behave like align*?

GausslerIs it possible to modify LaTeX so that good old $$...$$ behaves like align* (and by this I mean that it should be synonymous to it). If yes: Dear LaTeX3 developer, please integrate this into LaTeX3! (Not that I really believe you will actually do this.) MWE (even if I don't really see its use i...

@Joseph ^^ One pearl for you :)
 
10:40 AM
@DavidCarlisle Great! But it doesn't work on Mac OS X. :( Updated yesterday with new binaries.
 
@egreg I just modified the web code and compiled it a few minutes ago, so the number of places it works is somewhat limited currently.
 
@DavidCarlisle Send it to Khaled ASAP!
 
@egreg I thought I might test that it works for more that just A first.
 
@DavidCarlisle \Uchar "10FFFF
 
65 OK
"41 OK
`A OK
!= 0
"E9 OK
𝔸 != "1D538
􏿿 != "10FFFF
@egreg need to do some more work on non-BMP characters (Bruno warned about that on the etex list last year, will investigate)
 
10:57 AM
I have this in my tex:
\documentclass[11pt,dvips,twoside,letterpaper]{article}
\usepackage[usenames]{color}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{geometry}

\RequirePackage{amsfonts,amssymb,amsmath,amscd,amsthm}
\RequirePackage{txfonts}
\RequirePackage{graphicx}
\RequirePackage{xcolor}

\def\figurename{Figure}
\makeatletter
\renewcommand{\fnum@figure}[1]{\figurename~\thefigure.}
\makeatother

\def\tablename{Table}
\makeatletter
\renewcommand{\fnum@table}[1]{\tablename~\thetable.}
How i must do to give a equation the name for example (P)
thank you
 
@Vrouvrou \begin{equation}x=1+1\tag{P}\end{equation}
 
why \special{! /pdfmark where and so limit yourself to latex and one driver rather than use hyperref so it works with latex or pdflatex etc, choosing a suitable syntax in each case 9as for graphics inclusion and color) ?
 
Hello
 
@IbnSaeed hi
 
@IbnSaeed sup
 
11:07 AM
excited to be here
 
@IbnSaeed We all are. :)
 
0
Q: Setting table-width exactly to linewidth

zinjaaiI'm trying to create a table with exactly the same width as the surronding text. I would expect that the command \resizebox{\linewidth}{!}{..table..} should do the job. However, the tables width is still too small. \documentclass{scrartcl} \usepackage{graphicx} \usepackage[table]{xcolor} \se...

@egreg ^^ more missing % rep for you! :-)
 
@egreg i can't give it the name $P_{q,\theta)$ ?
 
@Vrouvrou typo: $P_{q,\theta}$
 
sorry yes $P_{q,\theta}$ @egreg
 
11:29 AM
@DavidCarlisle Cool: your local copy?
@DavidCarlisle Assuming it is, any chance of looking at \pdfmdfivesum?
 
@Vrouvrou Why not? \tag{$P_{q,\theta}$} will work.
 
ahhh with $
thank you @egreg
 
12:25 PM
@yo' Indeed
@yo' Plan is to approach $ very differently so $$ is not going to cause us issues, but not in the way requested here
@DavidCarlisle Can you send me the source file?
 
@JosephWright yes but I discovered why it doesn.t work (@egreg)
 
@DavidCarlisle In that case don't bother :-)
 
It uses the same routine as \string and that doesn't work either
@JosephWright It fails for non BMP characters
\edef\z{^^^^^1d538}
\immediate\write20{^^^^^^01d538 == \z}
\immediate\write20{^^^^^^01d538 == \meaning\z}
\immediate\write20{^^^^^^01d538 == \expandafter\string\z}

\end
Try the above, with luatex you get:
𝔸 == 𝔸
𝔸 == macro:->𝔸
𝔸 == 𝔸
with xetex you get
(./nonbmp.tex
𝔸 == 𝔸
𝔸 == macro:->��
𝔸 == ��
probably the utf-16 surrogate pair encoding :(
@JosephWright so I think my (Bruno's) patch to add \Uchar would probably be correct if \string worked.
 
Hi. I have a really trivial question which is possibly expansion related. Is anyone bothered ?
expansion and pgffor related..
 
@1010011010 don't ask if you can ask
 
12:36 PM
I'll explain sometime why I asked... anyway
 
@DavidCarlisle OK, so suggest adding it and then worry about fixing \string?
 
@JosephWright No I'm planning to send a question to the xetex list in a bit.
 
@DavidCarlisle XeTeX has issues outside of the BMP generally so it would not make is worse
 
I'm evaluating some values in a for loop. Let me patch up a minimal example...
 
@DavidCarlisle Ah, cool
@DavidCarlisle I'm working on the log stuff. Probably will break LuaTeX testing for a bit!
 
12:38 PM
@JosephWright I'm still worried a bit about how xetex patches will be handled now Khaled's declared his github clone read only, but let's see what happens...
 
@DavidCarlisle There's only one way to find out, and if we do want to try to tackle the bigger issue we have to do this
 
@JosephWright yes
 
1:08 PM
@JosephWright mail sent:-)
 
22
Q: Can I write "nonsensual data" for data that makes no sense?

BoZenKhaaI am worried that "nonsensual data" might come across as data that does not have a lot of erotic vibe....

LOL
 
@PauloCereda hahahaha
 
1:24 PM
@PaulGessler Foxy data (as in Foxy lady). :)
 
I can't get it very minimal.. :(
/question
 
@PauloCereda oooooh! Nice one!
 
2:05 PM
Okay, I did fix my first problem. There's a second one though. How can I set the x, y, z variables of my \tikzset without trial and error? I'd like a new perspective on my 3d plot but it's not heading in the right direction yet....
 
yo'
2:32 PM
@JosephWright This starts to be really annoying. Is it encouraged?
 
I see Svend is on a roll with a blaze of editing. Perhaps there is some badge at stake.
 
yo'
@StevenB.Segletes See my comment above :)
 
I'm not even an editor and I noticed it.
 
Hi
I have one confusion that is why we used 65536 for conversion and divide it with \number ex: \makeatletter
\def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1}
\makeatother
I am new to latex
Can anybody help me?
 
2:48 PM
@enadulshaheen it's 2^{16} and the scale factor between numbers and pt
@enadulshaheen If you have a dimen = 1pt and use it as a number it is treated as its value in sp which is 2^{16}
 
yo'
I have the chance to cite Don E. Knuth in my thesis. Should I?
 
@SvendTveskæg What's happening with all of those edits?
@yo' Edits are fine if they are not excessive
 
yo'
@JosephWright well, these are IMHO too minor to be worth a bump... :-/
 
@yo' you mean as opposed to claiming that you invented one of his algorithms?
 
yo'
@DavidCarlisle no. The connection to his work is weak, so it's borderline -- I wouldn't think of citing it if it wasn't him probably, but I can cite it without any harm :)
 
2:58 PM
@yo' I thought maybe you thought the @yo'-Bendix algorithm sounded nice?
 
yo'
@DavidCarlisle LOL
 
@DavidCarlisle if i use \Printdimen{mm}{\hsize} mm then my output is 121.25427 mm.
 
@enadulshaheen I no idea where \Printdimen is defined or what value your \hsize should print as:-) if you have a coding problem it's best to make a reproducible example as a question on the main site, not in this chat room.
 
@enadulshaheen For a start, what does \showthe\hsize give?
 
@DavidCarlisle if i use \convertto{mm}{\hsize} mm then my output is 121.25427 mm.
 
3:04 PM
@enadulshaheen I no idea where \convertto is defined or what value your \hsize should print as:-) if you have a coding problem it's best to make a reproducible example as a question on the main site, not in this chat room.
 
@DavidCarlisle why we used \numner ? dimexpr?
 
@enadulshaheen As I said, start with a simple \showthe\hsize
 
if i print \the\hsize output is 345 pt
 
yo'
@DavidCarlisle Should we create a text building block for this? :)
 
@enadulshaheen Your questions are not understandable sorry. You post some fragment of tex that I can not run and state what output you get but don't say what output you expect.
 
3:10 PM
@DavidCarlisle sorry for that here is my code \documentclass{article}

\makeatletter
\def\Printdimen#1#2{\strip@pt\dimexpr #2* 65536 /\number\dimexpr 1#1}
\makeatother

\begin{document}

\Printdimen{mm}{\hsize} mm
\end{document}
 
@enadulshaheen 345pt is 121.25427 mm so that's correct although it would safer to end #1\relax}
 
@DavidCarlisle Indeed
 
@DavidCarlisle i know its correct . i want to know why divide / \number and multiplied with 65536
 
@enadulshaheen @DavidCarlisle told you: the conversion factor between pt and sp, as TeX stores dimens in the latter units
 
@enadulshaheen But I answered that to your initial question, that is the scale factor between dimen in pt and dimen tretated as a number
 
3:13 PM
@DavidCarlisle i am new to latex so that many question arise in my mind
 
@enadulshaheen This is not really a beginners question: why do you need to know this?
 
@enadulshaheen If you are new to latex, it is best to learn the top level latex syntax, not low level etex-arithmetic, why do you need this at all?
@JosephWright group think:-)
 
I wish write a research paper about unit conversion using latex
Thanks for your help
 
@enadulshaheen Huh?
 
@enadulshaheen It isn't a research topic!
 
3:20 PM
I need this type of calculation in my paper
 
@DavidCarlisle Besides, everybody should use imperial units. :)
 
@enadulshaheen fine, but you can use \section in a latex document without needing to know how every line of its definition works, why is \Printdimen different? (It is simple enough really once you realise that \dimen0=1pt \count0=\dimen0 sets \count0 to 2^{16} but you don't need to know the definition
@PauloCereda You should be packing
 
@DavidCarlisle I'm ready. :)
 
@PauloCereda have a good trip:-)
 
@DavidCarlisle Thank you. :) I'll try to steal someone's wifi and come to the chatroom. :)
 
3:27 PM
@PauloCereda have you got that google translate app on your phone so you can point at arbitrary Spanish signs and have them translated into perfect English/Portuguese?
 
@DavidCarlisle I do have it for emergencies, but in general, I think I can handle Spanish. :)
 
@PauloCereda I am sure google translate is better at translating than any mere human (or duck)
 
@DavidCarlisle I know a lot of Spanish songs, surely one of them will help me. :)
 
@JosephWright experimented a bit with modifying \Uchar for high characters, I could change the behaviour but not in ways that seem particularly good. WEB isn't the easiest language to follow:(
 
3:55 PM
@DavidCarlisle I just checked, unfortunately Google Translate does not support Duck
@PauloCereda ^^ :-(
 
@PaulGessler Oh. :(
 
yo'
@DavidCarlisle Uchar - Urach - Uqack - Quack. It seems that calling it \Quack is the solution!
 
@JosephWright I think I give up, if I use `XeTeX_Uchar_code: print_visible_char(cur_val);` instead of `print_char` it makes a single token as checked with `\def\zz#1#2#3#4{[#1][#2][#3][#4]}
\immediate\write20{TEST2: \expandafter\zz\z123456789}` (it all ends in `#1` but `\if` tests still fail to say it is the same character, and printing to the terminal is messed up so debugging isn't much fun. Hmm this was supposed to be the easy addition before looking at direction TRT
@yo' thank you for your insight, I'll forward to the xetex list.
 
yo'
@DavidCarlisle don't forget to cite @Paulo :)
 
4:39 PM
johannesbottcher assigned this to @ChristianHupfer one minute ago
http://latex-community.org/forum/viewtopic.php?f=5&t=26241&view=unread#unread
 
yo'
4:49 PM
The faculty dancing ball starts in 40 minutes, I gotta go :) See you later! And you, Mr. Duck, @Paulo, have a safe trip!
 
@yo' Thanks, pal!
 
yo'
@PauloCereda don't forget that you only need: your passport and a credit card. Everything else can be bought :)
 
@Johannes_B: There's some misunderstanding: I am the teacher. I do assign and I am not assigned ;-)
 
5:26 PM
0
A: Vertical Spacing Between Figure Names from Different Chapters in Table of Figures

Johannes_BWell, really no need to go into source code surfing here. \KOMAoption{chapteratlists}{0pt} will set the chaptergap to zero point. All lists controlled by package tocbasic are influenced.

 
5:40 PM
My phone just told me I have a flight tomorrow.
 
@Johannes_B: Yes, yes, the bunch of KOMAoptions which aren't documented, probably :-P
 
@ChristianHupfer Sure they are, i think ...
 
6:01 PM
@PauloCereda What time are you leaving?
 
@egreg 14:10 BRT tomorrow. :)
 
@PauloCereda Which means one hour before the current time?
 
@egreg Correct. :)
 
@PauloCereda I'll go and light a candle to the “Madonna del Carmine” for you. :)
 
@egreg Thank you. :) I'll take lots of photos and show them to you. :)
 
6:07 PM
@Johannes_B: The LC post is a problem with expansion of \pageref
 
6:29 PM
Hi guys.
 
6:52 PM
@ChristianHupfer I know, but i never really had the time to figure out expansion.
@FaheemMitha Hi
 
Hey @Johannes_B
 
@FaheemMitha Quack. Quack quack, Quack. Quaaaaaaak!
 
@Johannes_B Oh, dear. Have you gone the way of Paulo?
 
@FaheemMitha I am a penguin, but i speak duck quite well. ;-)
4
 
@Johannes_B congratulations.
 
6:56 PM
@Johannes_B What do penguins say?
 
@JosephWright Yes Rico, kaboom. ;-)
 
@Johannes_B Not F'tang F'tang, then
 
7:36 PM
[sudo] password for boettchj:
TeX Live 2014 is frozen forever and will no
longer be updated.  This happens in preparation for a new release.

If you're interested in helping to pretest the new release (when
pretests are available), please read tug.org/texlive/pretest.html.
Otherwise, just wait, and the new release will be ready in due time.
tlmgr: package repositories:
	main = mirror.ctan.org/systems/texlive/tlnet
	KOMA = komascript.de/~mkohm/texlive-KOMA
tlmgr: saving backups to /usr/local/texlive/2013/tlpkg/backups
 
@Johannes_B That tool is able to generate PDF. Just PowerPoint probably doesn't support it.
 
@StefanKottwitz I meant the link. Is this considered advertising?
 
@Johannes_B Not in a bad way, as it's a link to a LaTeX tool.
 
@StefanKottwitz It stays then :-)
@StefanKottwitz Is it normal, that i can update TL2014? See the above terminal copy.
 
@Johannes_B Well, frozen can mean TL 2014 but not its status on your computer
would me meaningful to be able to update an older 2014 installation to the last and frozen status
 
7:46 PM
@StefanKottwitz tlmgr updated from TL2013 to TL2014 as well, which i thought is impossible.
 
@Johannes_B Perhaps you got the chinese tlmgr which can update to 2016 already, also orderable on alibaba.com on a 16 TB USB stick :-)
 
@StefanKottwitz :-D
@StefanKottwitz all updates ar around the nineth or tenth of April. I thought i did run tlmgr right after TL went frozen.
 
@Johannes_B Perhaps put it to the texlive mailing list? others might test
 
@StefanKottwitz If it runs other updates, i'll report it.
@StefanKottwitz Last KOMA (pdf) was 2014-04-16, current updated source files from KOMA-rep are from today.
 
8:04 PM
For those of you who've always wondered why students from the U.S. end up with such awfully formatted dissertations, this Formatting Tutorial is a tour de force of awfulness.
 
8:17 PM
@AlanMunn But they warn about it: “The formatting requirements set by the Graduate School are NOT comparable to the formatting requirements set by any journals you may have published in or may publish in.” :)
 
@egreg I just find the formatting [sic] of the Powerpoint itself so overwhelmingly bad. It kind of explains everything...
2
 
@AlanMunn :)
 
8:50 PM
1
Q: How do we maintain answer quality when everybody thinks he's an expert?

Monica CellioI participate on several Stack Exchange sites that have scope that's a little more subjective than the norm. These topics tend to also be more "accessible" to people; you pretty much have to be a programmer to answer questions on Stack Overflow, but anybody who once knew somebody who had a cat m...

 
@Johannes_B: Only an expert can answer that ;-)
 
@ChristianHupfer Fair point :-)
 
9:09 PM
@JosephWright At least, not the Madagascar ones. :)
 
@ChristianHupfer Whoever answers becomes automatically an expert.
 
@egreg: Depending on the definition of an answer ;-)
 
@egreg works for
 
@DavidCarlisle Really!
@DavidCarlisle The next badge I'll chase for is
 
West Indies 299
England 361-5
 
9:45 PM
Wow, tex.SE has a friendly chat!
9
 
@DavidCarlisle: I rather suggest ;-) You would get the gold badge immediately
 
@Canageek There are several things in TeXStudio I don't like. I discovered one more: the autocompletion is too intrusive. I'd expect that if I don't choose one of the suggested commands, no completion is performed, not the first one.
 
@Karalga: Yes, we are quite proud of that ...
 
@egreg Yeah, that would be nice. I prefer tab completion myself. I should really just learn to write in emacs, but I find the settings that I like for writing are not those I like in a text editor.
 
@Canageek If you want a really bad one, try vim. :-O
2
@Karalga We try to be nice!
 
9:50 PM
@egreg I'm not THAT crazy. You've heard about when vim broke one of the biggest sites on the net, right?
 
@Karalga We have penguins, ducks, llamas and humans talking about cricket, football and how to drive in the wrong side of the road all day long. :)
 
god, it makes sounds! and all the 10k+ people are here too... thats quite intimidating!
 
@Karalga Even the 300k+ ones. :P
@Karalga But I usually don't bite.
 
@PauloCereda: You forgot to mention the Black Forester sob
 
@ChristianHupfer ooh sorry <3
 
@DavidCarlisle: I think this is a question for you
0
Q: How to vertically align text in a table

anaI have problems vertically aligning text in my table. I define new column type like this: \newcolumntype{M}{>{\centering\arraybackslash}m{\dimexpr.25\linewidth-2\tabcolsep}} And this works for all column but last one. Any idea why doesn't it work for the last one? The second question: how t...

 
We have an awesome Black Forester too who provides cookies to a certain duck in the black market. :)
 
@ChristianHupfer Those who build cuckoo clocks all the time?
 
Hello @egreg! No wonder you have so many, it sometimes seems you and @DavidCarlisle have answered all the questions there are...
(sorry to exclude all the other high scorers :P)
 
@egreg: Exactly...incidentally almost any of my ancestors worked in the cuckoo clock industry,
 
9:54 PM
@Karalga We mostly fight each other over green ticks.
 
@Karalga: They answer only the easy questions, the hard ones are for other users here ;-)
 
@PauloCereda You called a penguin?
 
@PauloCereda: Handing over a Black forest cookie ... well, two of them... I had a successful day
 
@Johannes_B A bloke said this chatroom was friendly. :)
@ChristianHupfer yaaaaaaaaaaaay cookieeeeee
3
 
@PauloCereda KEKSE
 
9:57 PM
@ChristianHupfer tbh, I find it quite hard to find questions that I can answer and have not been answered yet!
btw, is there a keyboard way of selecting the person you want to highlight after typing @ ?
 
@Karalga: That's no problem: You can post questions as well, of course. We like good questions here!
 
@Karalga Press tab after @ and the first letter
 
@Karalga: I know of one, except of typing a few letters of the name
 
@egreg thanks!
 
@Johannes_B ooh
 
10:00 PM
@PauloCereda: Meanwhile we've got a little zoo here ;-)
 
@ChristianHupfer :)
@ChristianHupfer: Das Böse Ente :)
 
@Karalga I usually start thinking to the answer while I click the question's link to read it. :)
 
@egreg: In fact, you are sometimes using expl3 code which often looks longer than 'ordinary' LaTeX code :-P
 
@egreg sounds like you are waiting impatiently for new questions!
Fortunately you don't seem to like cleveref that much :P
 
@Karalga Not really. I wait for good questions. And no, I never use cleveref; happy to see an expert of it around.
 
10:04 PM
well, expert... Tex feels like such a silly programming language.
I mean, why do you need a whitespace after \advance\mycounter -1 ?!
 
@Karalga Just change the point of view. How do I coerce this funny language into doing what I want?
 
0
Q: How to get the TexCalendarCompetition.Rnw build using debian jessie (currently aka debian testing)?

multiSetThe TexCalendarCompetition.Rnw refers to Nicholas Hamilton's code contribution to the TUG calendar 2015 (see Nicholas' answer for details)

Is that a useful question and an immediate self-answer? ;-)
 
@Karalga Because this terminates the constant (or TeX happily cointinues expanding tokens)
@Karalga Or you learn \advance\mycounter\m@ne
 
ok, make it -2 then.
 
@Karalga It's no big deal once you know about the subtlety.
 
10:09 PM
@egreg: well, if you weren't going to say that, tex would really be struggling!
But I suppose I will learn to love it :P
 
@Karalga to distinguish it from \advance\mycounter -10
 
@DavidCarlisle where would the 0 come frome? surely a \n would be enough!
 
@Karalga If you know there will be no following digit, then you don't need the white space.
@Karalga yes but you asked why that \n is needed.
@Karalga \advance\mycounter -1abc is perfectly legal it's not true that you "need whitespace after \advance\mycounter -1"
 
@Karalga If by \n you mean an end-of-line, then it's good as well.
 
@DavidCarlisle: Oh, I suppose... Actually, other language will complain even if you write int x = 1234abcd, so I suppose Tex is more powerful. Its just different.
 
10:20 PM
@Karalga exactly, in most programming languages, either end of line or a ; or something terminates the expression but TeX syntax is optimised for writing the text of the document and not optimised at all for writing code.
 
@egreg yeah, thats what I meant. And the code I fixed broke because it used %\n instead of just \n.
 
@Karalga it's best not to use \n to mean end of line when discussing tex syntax:-)
 
@Karalga Very common error: adding % where it's wrong or not adding it when it's necessary. As @DavidCarlisle will confirm, this is what gave me at least 250k of my rep.
@DavidCarlisle ^^M is better and clearer.
 
@egreg link to a SX reference please?
 
@Karalga Just joking
 
10:23 PM
@egreg even though it's true
 
I was just thinking of alternative uses of \n ...
its difficult to google :P
 
@Karalga \def\n{hello} for example
 
@DavidCarlisle: true...
but there isn't a universal meaning for \n, is there?
 
@Karalga point is if you just read a comment like \advance\foo=1\n then you will see \n as a command of that name, not pseudo C syntax for EOL
 
the cleveref source ends every line of code with a % sign... so thats not the way to do it?
 
10:27 PM
@Karalga no
@Karalga think of it like writing text, a newline is the same as a space so
one two three%
four five six%
.%
 
@DavidCarlisle: so that would print as one two threefour five six.?
 
@Karalga in the above the first % is wrong as it removes the inter-word space between three and four, the second % is needed to avoid a space before . and the last % is harmless but pointless.
@Karalga yes, and the same parser is used when parsing macro definitions, so the same rules apply
 
@DavidCarlisle clever really. In most other languages its difficult to avoid the effect of a line break.
 
@Karalga as I say tex syntax is optimised for writing paragraphs of text in an editor that hard wraps the text flow, the macro syntax has to fit round that basic design aim.
 
so could you also do something like
`\de%`
`f{n}{hello}`
 
10:34 PM
@Karalga no tokenization happens at a different stage
@Karalga but you can do
\mycount=1%
0
to set the count to 10
 
oh well, I suppose I should read a book on it... has that something todo with token being expanded?
 
@Karalga no, to do with the token being formed, once it sees \ it absorbs all characters of catcode 11 (letters) into the command name token but the `% isn't catcode 11 so terminates the command name, then it's recognosed as a comment so the rest of the line is skipped, then the f letter is seen but it is tokenised as a character token
 
cfr
Very, very off-topic. Does anybody know what might cause text in an RTF file not to wrap at the end of lines? A student has submitted work to me and the end of every line goes off the page so it cannot be seen. The page margins seem right. and the text is definitely there. (I can copy-paste it.) I wouldn't even know how to make LibreOffice do this if I wanted to, and I have no idea how to undo it.
 
@DavidCarlisle: thanks! Bedtime here. I might come back here some night!
 
@Karalga good night
 
11:18 PM
@cfr Sounds like some RTF with Windows line endings, if that's even possible, I guess. :)
 
cfr
@PauloCereda I thought that was plain text files? It has some line endings, though. For paragraphs and some others. But the lines are just much too long and it won't wrap, and I have no clue!
It is also the first document I've ever seen which uses dingbats as reference markers...!
 
@cfr I have no idea how to deal with RTF, to be honest. Maybe you could exploit pandoc to do some conversions back and forth, then issue a resulting .rtf file?
@cfr Oh my!
 
cfr
@PauloCereda Thanks. Maybe I'll see what IT can do. I can mark it OK. (I copy-pasted it into Kile.) But I can't print a copy for the moderator like this.
 
@cfr RTF is a very poorly standardized markup on top on txt. I'd try a different viewer and see if that works better? I bet Wordpad would run in Wine. Ask what they made it with?
 
@cfr: Stickleress to the point :-P
 
11:35 PM
@cfr Also
The Rich Text Format (often abbreviated RTF) is a proprietary document file format with published specification developed by Microsoft Corporation from 1987 until 2008 for cross-platform document interchange with Microsoft products. Most word processors are able to read and write some versions of RTF. There are several different revisions of RTF specification and portability of files will depend on what version of RTF is being used. RTF specifications were changed and published with major Microsoft Word and Office versions. It should not be confused with enriched text (mimetype "text/enriched"...
 
@Canageek Looks like a great plan. :)
 
cfr
11:59 PM
@Canageek Thanks. I don't think I'm up to installing WINE to try to read it. I agree that the format is a mess. However, I can usually manage OK with LibreOffice. I just don't know what the equivalent of ctrl+R from Thunderbird is. (Reflow text...) Indeed, there is probably no such thing in a WP ;).
@PauloCereda Great plans are an M$ speciality ;).
2
 

« first day (1635 days earlier)      last day (3303 days later) »