« first day (879 days earlier)      last day (4058 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
@Karl'sstudents Oh, now I understand you. Make a feature request @Martinscharrer and link to this question.
 
@Speravir I have requested it in meta several months ago but someone deleted it. :D
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{mwe.tex}
\documentclass{article}
\usepackage{blindtext}
\begin{document}
\Blinddocument
\end{document}
\end{filecontents*}

\immediate\write18{pdflatex mwe.tex}
\usepackage{pdfpages}

\begin{document}
\includepdf[pages=-]{mwe}
\end{document}
So I have to compose the MWE as mentioned above.
 
@Karl'sstudents Yes, I thought of this, too.
 
@PauloCereda Prego. ;-)
 
@egreg ;)
 
@PauloCereda I'm doing version 0.2 of regexpatch.
 
12:08 AM
@egreg Really? Do you need a tester? I love regexen. :)
 
one with administrative privilege should be able to see my request (that has been deleted) on a multi-page PDF file added to mwe package: meta.tex.stackexchange.com/users/19356/…
 
Hello @PauloCereda: Online again, see cat related content above. :-)
 
@egreg: I thought of you some minutes ago! We sang:
O vos omnes qui transitis per viam:
attendite et videte si est dolor sicut dolor meus.
Si est dolor similis sicut dolor meus.
Attendite, universi populi, et videte dolorem meum.
Si est dolor similis sicut dolor meus.
@Speravir ooh epic cats. :)
 
@Karl'sstudents my texlive 2012 has quite a few pdf files in the tex tree, this one for example /usr/local/texlive/2012/texmf-dist/tex/context/base/status-lua.pdf
 
@Speravir: Found it!
Jan 28 '12 at 14:25, by Paulo Cereda
user image
 
12:13 AM
@PauloCereda Yes. Doin' the Paulo: <3
 
@Karl'sstudents find /usr/local/texlive/2012/texmf-dist/tex -name *.pdf
 
@PauloCereda This is your cute Fuba, isn't it?
 
@Speravir Yes! <3
 
@DavidCarlisle Good searching. Thanks for your effort!
 
@DavidCarlisle Unfortunately not in MiKTeX (no ConTeXt at all).
 
12:16 AM
are we supposed to close really basic questions as TL (or I suppose it must be a duplicate of something) tex.stackexchange.com/questions/105641/…
 
@DavidCarlisle We closed similar questions … Especially when like in this case the OP says it worked in a comment.
 
user19161
@PauloCereda I changed to "blue".
 
@JasperLoy Hey Jasper! :)
 
@Speravir oh why no context on miktex? There were some in the latex tree but I didn't check if they were multi-page
 
@JasperLoy Fifty shades of Blue.
 
user19161
12:19 AM
@Speravir Is that a movie?
 
@DavidCarlisle I don’t know, ask Christian Schenk.
@JasperLoy A post-modern painting. ;-)
 
@Speravir well I don't care because I'm in denial that I am on windows and just use cygwin texlive :-)
 
@DavidCarlisle BTW a very recent example: Small square at the end of line when \verb and \verbatim.
 
@JosephWright I am in Beijing (UTC+08:00).I'm free this evening or tomorrow morning
@JosephWright I mean 21:00 -- 23:00 Mar 28, or 9:00 -- 11:00 Mar 29, Beijing time. That's UTC 13:00 -- 15:00 Mar 28 or UTC 1:00 -- 3:00 Mar 29.
 
12:38 AM
Is there any additional thing for the next release of l2tabu?
I meant are tabu things static as the time goes?
 
1:04 AM
@LeoLiu I think 13:30 - 15:00 UTC timeframe is excellent. :)
3
 
 
2 hours later…
2:35 AM
@Karl'sstudents You should delete your listings/showexpl answer to the duplicated question.
 
@Speravir It is too late. :-)
 
@Karl'sstudents What? You cannot delete your own answer anymore? Then we should flag it.
 
@Speravir No. I can delete it, please check it again.
 
@Karl'sstudents Aaargh, now I understand …
 
@Speravir: I lost my rep of 10. :D
 
2:41 AM
@Karl'sstudents But I already upvoted the other instance.
 
@Speravir Thanks!
 
3:01 AM
@PeterGrill To your \verb answer: I think it doesn’t matter anymore. I edited the answer in the linked duplicate. How about deleting our comments?
 
@Speravir Ok, I tried to delete the answer as well, but it seems that that can't be done...
 
@PeterGrill As you wrote it I remembered others observed this, too.
 
3:22 AM
@Speravir Aww. (Ist der „Schal“ aus Weihnachtsbaumschmuck?)
 
@PeterGrill I was reading your reply on \verb| | answer, in a few seconds it was redirecting to an old question. I think we should wait for few hours to delete the Q &A, i preferred this Q &A as it had good example.
 
@Qrrbrbirlbel Good question, next please. But no, the scarf was originally part of a set of clothes.
@texenthusiast ??? There’s nothing of Peter deleted. I still can read his answer to the duplicate.
 
@Speravir ok where is @Karl'sstudents answer ?
ok, i think it was moved to duplicate , fine then
 
@texenthusiast I removed by myself to save more spaces on the server.
 
@texenthusiast Where it belongs :-) tex.stackexchange.com/a/105647
 
3:31 AM
@Karl'sstudents :)
@Speravir Thanks @PeterGrill It is resolved now. Got it.
@Karl'sstudents i liked showexpl package for latex tutorials preparation and demo.
 
@texenthusiast Good. Give me your free tutorial to me.
 
@Karl'sstudents ongoing :)
 
@texenthusiast waiting for...
 
@Karl'sstudents God
 
@texenthusiast Ghost
 
3:38 AM
@Karl'sstudents :)
 
@texenthusiast :-)
 
@Karl'sstudents do you use Version control ?
 
@texenthusiast several years ago yes
I use just rscync for synchronization. No need for versioning.
 
@Karl'sstudents which one ?
 
10
A: Is it possible to download TeX Live in a separate, single file?

Karl's studentsIf you want to have a "resume/pause"- like feature when downloading TeXLive then mirroring it on your hard drive is a good approach. Advantages of mirroring TeXLive: We can pause or resume the download. We can share the raw TeX distribution for other users in our local network. As a result, we...

cwrsync version 3
 
3:45 AM
@Karl'sstudents how is this different from tlmgr update ?
 
@texenthusiast You are comparing a banana with an apple.
 
@Karl'sstudents except the share the raw TeX distribution for other users
 
cwrsync is a tool to synchronizing files between two places.
For example CTAN and my CTAN mirror in my hard disk.
It is general purpose file synchronization.
 
@Karl'sstudents i understand the concept of your local TeX distro becomes another local host
 
tlmgr is used to synchronizing the installed TeX distro with my local CTAN mirror (or with CTAN server directly).
 
3:49 AM
ok
 
Several years ago I used subversion turtoise for versioning.
 
ok
you are good batch scripter
 
@texenthusiast No... I am still learning....
 
ok
@Karl'sstudents if you still learning i am born now
3
 
@texenthusiast :-)
 
4:37 AM
@Speravir I need your expertise and help, can you kindly edit or correct any mistakes in my post here in view of your miktex experience.
 
@texenthusiast Oops. I already commented. See you later alligator.
 
@Karl'sstudents I guess, I will still think this is more a question for math.sx even after you have changed the form. Even for a simple cone, you will have something like the left picture in the following:
user image
2
 
@Speravir ok Thanks a lot. do it in your free time. what is alligator and strike off mean ?
 
@Karl'sstudents The transition from the left to the middle state would mark the critical angle.
 
@Qrrbrbirlbel Is the integration elliptical?
 
4:46 AM
@Karl'sstudents can you star paulo's Interview time with Leo Liu comment to publicize it more
 
@texenthusiast which one?
 
@texenthusiast already done just several miliseconds ago.
 
@Karl'sstudents thanks a lot. Good conic sections. great work
 
@Karl'sstudents Yes (I think)
 
4:56 AM
@Qrrbrbirlbel Hopefully using cylindrical coordinate system will simplify the integration.
 
@Karl'sstudents can you clean up some of your unimportant comments on the offline installation Q, if you dont mind
 
@texenthusiast of course!
 
@Karl'sstudents sorry to trouble you.
@Karl'sstudents retain your mirror one
 
All have been removed blindly. :D
 
@Karl'sstudents i made my answer wiki, so add it there Alternative approach
@Karl'sstudents no worries. thanks a lot
@Karl'sstudents bye then :)
 
5:03 AM
@texenthusiast bye!
 
5:33 AM
@Qrrbrbirlbel The projection of the ellipse on the cone base for the first diagram is an ellipse.
 
5:55 AM
The order of Mandatory and optional arguments in the following example does not conform to the normal use.
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{myfp}[2013/03/28 v0.01 LaTeX package for my own purpose]
 
 
1 hour later…
7:03 AM
@Karl'sstudents Package feature request do not belong on Meta or the main site. Instead simply contact the package author. I'm already aware that mwe misses a multipage PDF and planning to add one in the next release.
 
@MartinScharrer Ok. Thanks for responding. I am waiting for the next release.
 
8:01 AM
Guten Morgen!
 
8:22 AM
After playing around with the test file from showexpl, I found that when numbers=none, xleftmargin does not have any effect on verbatim. It only works when numbers=left or right. probably a bug? — ltxsun Jan 15 '11 at 6:09
 
8:37 AM
huhu
 
8:48 AM
@PauloCereda OK
 
9:17 AM
55
Q: What is the most bizarre thing you have seen done with TeX

XavierI think the questions says it all! :) By TeX, I mean any derivative of TeX as long as the code is clearly a derivative of TeX, i.e. that it could belong on TeX.SX (and not pure Lua for example). I'll give two answers myself so you see what I mean.

Attracting some not-so-positive comment, I suspect from people who are regulars on SO bu not here
 
Hello
 
@kalpeshmpopat Morning
@PauloCereda I look forward to seeing Dandelion in action :-)
(for others)
 
10:03 AM
@JosephWright I think I should post this morning's use of tabularx to that thread:
0
A: Why won't putting \input inside a tabularx environment compile?

David CarlisleYour posted example runs without error although it isn't an example of the case mentioned in the title of using \input in tabularx (which should work mostly, depending on what exactly you input). However I can't really suggest changes as it is hard to guess the intention of the code. I make some...

 
@DavidCarlisle :-)
 
By the way, good morning folks! :)
 
@PauloCereda I'm going to have to remind myself how to check out a git repository (or whatever the git terminology is to get local copies of the files:-)
 
@DavidCarlisle You can help me write funny comments (see link). :)
 
@DavidCarlisle Clone first
@DavidCarlisle It's not so hard
 
10:09 AM
-- lalala I can't hear
-- you lalala
os.exit()
 
@DavidCarlisle git clone git@github.com:cereda/dandelion.git
 
@JosephWright: I must confess, it's very nice to write a program from scratch. :)
 
@JosephWright Yes I did it the other day for the w3c html test suite (which I had to fork first on github in that case) but since I just followed instructions line by line didn't really sink in, my mental model of source control is still somewhat svn/cvs oriented I expect:-)
 
Will mentioned that a pure Lua implementation would be better, so we need to write every single bit of parsing, which is both challenging and fun. :)
 
@DavidCarlisle You only need to fork if you don't have checkin rights to the master, and want to be able to. Not a problem here
 
10:15 AM
@JosephWright yes I know (w3c less trusting that @PauloCereda in who they give rights to it seems:-) , just saying I managed fork/clone/commit/pull-request dance so I can probably manage to figure out the commands needed to mess up dandelion...
 
10:36 AM
@JosephWright I'm not bothered really but as a matter of interest why is my answer here cw (did I click on it or did you or an automatic thing flip it to cw?) tex.stackexchange.com/questions/105670/…
 
@JosephWright: so far:
% !test
% id: test1
% name: Test 1, l3kernel
% author: Joseph Wright
% description:
%% This test is done in order
%% to check the correctness of
%% the l3kernel
% expects:
%%% 1234
    _              _     _ _
 __| |__ _ _ _  __| |___| (_)___ _ _
/ _` / _` | ' \/ _` / -_) | / _ \ ' \
\__,_\__,_|_||_\__,_\___|_|_\___/_||_|

Copyright 2013, The LaTeX3 Project
All rights reserved.

expects	1234
description	 This test is done in order to check the correctness of the l3kernel
id	test1
author	Joseph Wright
name	Test 1, l3kernel
Later on, I'll explain the syntax. :)
 
@DavidCarlisle Looks like you posted as CW
 
@JosephWright: I'll update Leo's interview info, can you post the info into the community board?
 
10:52 AM
@PauloCereda When is it?
 
@JosephWright Good question! :)
Today, I guess? :)
Hi @LeoLiu! :) When would you like to be interviewed? :)
 
11:23 AM
@PauloCereda dandelion is arara rewrite in lua?
 
@michal.h21 No, but maybe it can be a start (I'm writing some variant of a YAML parser myself). :) It's a test framework. :)
 
@JosephWright probably just caught it by mistake, let it stand:-)
@PauloCereda
    _              _     _ _
 __| |__ _ _ _  __| |___| (_)___ _ _
/ _` / _` | ' \/ _` / -_) | / _ \ ' \
\__,_\__,_|_||_\__,_\___|_|_\___/_||_|

Copyright 2013, The LaTeX3 Project
All rights reserved.

expects	1234
description	 This test is done in order to check the correctness of  longtable
#####: Dandelion error: unnecessary test detected.
 
@DavidCarlisle OMG YES
I'll add a check.
@JosephWright: ^ David has the code ready for production.
 
@PauloCereda great
 
@PauloCereda Hmm, we can start now, or 2 hours later as I mentioned before.
 
11:31 AM
for parsing in lua, see inf.puc-rio.br/~roberto/lpeg/re.html
 
@LeoLiu If you don't mind, I think 2 hours later might be better, so people can get ready. :)
 
it's based on lpeg, but much simpler
 
@michal.h21 Thanks! :) I'm waiting for an opportunity to visit Rio de Janeiro and talk to the guys at PUC. :)
 
@PauloCereda Sure.
 
@LeoLiu I'm lost with UTC. 13:00h?
@michal.h21: I'm a Lua newbie, so forgive my humble code. :) Someday I'll be an expert like you. :)
 
11:40 AM
@PauloCereda I am in no way lua expert! :D
 
@PauloCereda 13:00 or 13:30, it doesn't matter, you said 13:30 - 15:00 sereral hours before. GMT is the same as UTC, I think.
 
@LeoLiu Ah thanks. I'm lost with those timezones, mine is BRT. :)
30
A: TeXtalk interviews

Paulo CeredaOur next interviewee: Leo Liu Interview scheduled to Thursday, March 28th, around 1:30PM UTC. Everybody is invited! Lost with the UTC time? Click here to see the event time in your local timezone. :)

@JosephWright: community board, defrost interview room, bring some muffins. :)
@percusse: sir, we need beer in the interview room. I repeat, we need beer in the interview room. Roger.
 
@PauloCereda Done
 
@PauloCereda Fine.
 
@JosephWright muffins too? :) Thank you very much. :)
@LeoLiu Thanks again for you time. :)
 
12:13 PM
@LeoLiu GMT and UTC are not always equal: when GMT has DST then GMT = UTC+1
 
@Qrrbrbirlbel No GMT is always UTC, when the UK is on summer time we are on BST not GMT
 
@DavidCarlisle When you see it like that, yes, that is correct. Let me rephrase: The local time in the UK is not always the same as UTC.
 
@Qrrbrbirlbel but it is for another day or two:-)
 
1:02 PM
@DavidCarlisle: ^
 
@PauloCereda looks like I had better see if my write access works...
 
@DavidCarlisle Oh no! <3
 
@PauloCereda Just remember who is next for the interview room after today......
@PauloCereda so do I just do git clone git@github.com:cereda/dandelion.git or do I need to first tell git(hub) that I'm me (ie my gmail login on github) if I want to get write access?
:8716090
$ git clone git@github.com:cereda/dandelion.git
Cloning into 'dandelion'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
hmm back to google to find the instructions:-)
 
@DavidCarlisle Do you have your public key registered on GitHub and loaded in your agent?
 
@JosephWright probably not ( think I was using http transport other time I used it) I may have to read the manual:-)
@JosephWright my ~/.gitconfig just has my name and gmail email address in it, I guess that isn't enough:-)
 
1:19 PM
@DavidCarlisle Use HTTPS instead.
 
@PauloCereda It's OK I told github my public key now I have
$ ls -lR
.:
total 0
drwxr-xr-x+ 1 davidc Domain Users 0 Mar 28 13:19 dandelion

./dandelion:
total 17
-rw-r--r-- 1 davidc Domain Users 13657 Mar 28 13:19 dandelion.lua
-rw-r--r-- 1 davidc Domain Users   326 Mar 28 13:19 README.md
 
@DavidCarlisle Yay! :)
 
I've seen bigger repositories
2
 
@DavidCarlisle :)
 
how often do you define macros in a document ?
 
1:32 PM
@DominicMichaelis Always? ;-)
 
cause i avoid using \newcommand usually
or something equivalent
 
To the interview room!

 TeXtalk - Interviews

Interviews for our community blog.
 
2:08 PM
@PauloCereda Hoping for an interesting interview/dialogue and looking forward to your transcription. :) (Sadly, I have things that need to be done.)
 
2:26 PM
@Qrrbrbirlbel :)
 
3:07 PM
People, the interview is still going on! :)
 
@topskip BEST. COMMENT. EVER.
 
i have a question to \mathpgfparse
sry \pgfmathparse
 
3:38 PM
Hmmm
 
i am trying to use it in a let operator
in TikZ
 
@egreg oops I just mentioned your solution then it went, is it coming back?
 
@DavidCarlisle I removed my answer because I remembered a duplicate
 
@egreg ah.
 
@DavidCarlisle It was with \caption, but it's just the same thing
 
3:50 PM
@egreg Yes I moved my answer to there.
@egreg It's easier to find duplicates when they are your answer:-)
 
@DominicMichaelis You probably don't need to. let allows you to use directly math expressions in the assignments
@DominicMichaelis perhaps if you explain what are you trying to achieve...
 
@JlDiaz i want to amke a picture of a householder transformation, where i can change alle the picture by just changing the first vector (the long story) i want to make a decotration that there is a right angle, so i need to calculate the arctan of (\y1/\x1) there
 
@DominicMichaelis Won't let \p1 = (whatever), \n1 = {atan2(\x1,\y1)}, etc.. work?
 
i need a comma ?
why a comma ?
 
@DominicMichaelis Look up atan2 in the PGF manual. This also takes the quadrant in account.
 
3:56 PM
@DominicMichaelis Because I'm using atan2, not atan
 
it works great
thanks :)
 
@DominicMichaelis atan2 needs x and y as separate arguments (and not only its quotient as atan) to compare the signs and determine in which quadrant the angle is
 
ah thats really great, i shouldn't stop reading finding the first thing whihc could be
 
So, after 2 days of trying, I found out that when declaring a new pgf shape, \saveddimensions are not available in \savedanchors. Can I assume the same is true for \savedmacros?
 
4:30 PM
@ThomasH Let's call the heavy artillery! :) @percusse, @Jake ^^
Oh, and @DavidCarlisle, of course. :)
 
@PauloCereda good interview (shame about the vim reference) so are you next?
 
@DavidCarlisle I was thinking of bb first. :)
 
@PauloCereda what a surprise that you thought of someone to go first
 
@DavidCarlisle I have a backup list. :)
 
4:45 PM
@PauloCereda I have a picture... (do you have one for today yet?)
 
@ThomasH You would save the definition (the calculation) of the \saveddimen inside of \savedanchor, so when you use the shape, you actually execute \saveddimen the first time and not while the defining the shape. This seems very messy …
 
@DavidCarlisle Not yet. :)
Suggestion for our interview lion? :)
 
5:01 PM
@PauloCereda You should give @LeoLiu a chance but China has its own lions: en.wikipedia.org/wiki/Chinese_guardian_lions
 
@ThomasH Take a look at this one first :)
4
Q: Usage of a saved dimension in another saved dimension in a \pgfdeclareshape command

Bertfried FauserI have a question about \saveddimen usage inside of a \pgfdeclareshape command. My code is as follows: \documentclass{article} \usepackage{tikz} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \makeatletter \pgfdeclareshape{myshape}{ \savedanchor{\centerpoint}{\pgf@x=0pt\pgf@y=0pt} \...

@AndrewStacey is the person who would give you a lot of info on that. Look at these questions after reading above.
baaah, search for \saveddimen :)
 
5:21 PM
!!/search saveddimen
Psmith, the TeX bot, in fixed font mode: Here's the output from my search:

- (4) Q: Usage of a saved dimension in another saved dimension in a \pgfdeclareshape command (/questions/47323/usage-of-a-saved-dimension-in-another-saved-dimension-in-a-pgfdeclareshape-comm)
- (2) A: Usage of a saved dimension in another saved dimension in a \pgfdeclareshape command (/questions/47323/usage-of-a-saved-dimension-in-another-saved-dimension-in-a-pgfdeclareshape-comm/51927#51927)
- (7) Q: TikZ/PGF: Create a saved length as part of a shape definition (/questions/24324/tikz-pgf-create-a-saved-length-as-pa
 
Interesting: I can’t access tex.stackexchange.com but the chat …
 
@Qrrbrbirlbel I've no problem.
 
@PauloCereda Thanks for the summons :) Looking at the answers now
 
@egreg It works again, weird.
 
5:25 PM
@ThomasH :)
!!/eightball Is Metapost easy to use?
@PauloCereda Psmith, the TeX bot: The great 8-ball says: ask again later.
 
@percusse I saw that before, but it's a bit too much trickery for my liking, as it exploits an unexpected side effect
I'm basically trying to make my life in declaring anchors, saved anchors and the backgroundpath easier by only defining once how to get the width and height of the shape and then re-using it
 
!!/reputation 4427
@PauloCereda Psmith, the TeX bot: User: egreg :: Reputation: 169,702
 
@PauloCereda On Saturday it will be less than 30000 to go. :)
 
@egreg We will have a big party! :)
!!/reputation 1090
@PauloCereda Psmith, the TeX bot: User: David Carlisle :: Reputation: 92,421
 
@Qrrbrbirlbel @Qrrbrbirlbel I don't quite follow
 
5:32 PM
@PauloCereda End of July, perhaps. :)
 
@egreg :)
 
@PauloCereda The only problem is that @DavidCarlisle will reach 100K before I get to 200K
 
@egreg We can downvote him. :)
 
@PauloCereda We should upvote @lockstep so that he gets there before @DavidCarlisle. ;-)
 
@egreg ooh a race! :)
 
5:35 PM
@Qrrbrbirlbel I declared \saveddimen{\mywidth}{\pgf@x=\pgfkeysvalueof{/pgf/minimum width}} (and analog for height) in the hope of re-using it to calculate a saved anchor at half width and half height of my shape.
So that I could 'escalate' it's complexity (taking into account inner and outer sep) gradually without having to search/replace everywhere
 
5:54 PM
Since \saveddimenions aren't available in \savedanchors, I was hoping to do it with \savedmacros instead.
 
@ThomasH Erm, … I think I have misunderstood you before. I thought you wanted to do \savedmacro{\somemacro}{… stuff \saveddimen{\somedimen}{…}}. But you actually want to use \saveddimen inside of \somemacro, i.e.\savedmaro{\somemacro}{… \somedimen …}?
 
@Qrrbrbirlbel I need to use the width of my shape (which involves some calculation) a couple of times, inside \savedanchor, \anchor and \backgroundpath definitions. So I wanted to use a \savedimen to only calculate (and more importantly type) it once. But \saveddimenions are not available inside a \savedanchor declaration, so I was wondering if I can define the calculation using a \savedmacro, if I can make that available inside \savedanchor
 
@ThomasH I think, without a real example, one can only guess how to best solve this. The basic example, the rectangle shape only uses the southwest and the north east anchor to calculate everything (the shape is pretty basic, too). The width can be obtains by x_NE - x_SW.
 
@Qrrbrbirlbel Yeah, I feared so, I thought for once I could get away without posting a question ... :)
 
6:09 PM
@ThomasH In this answer of mine I have added anchors that lies directly on the middle of the drawn line and have opted to not save the line width but to save the anchors \linenortheast and \linesouthwest and use these to calculate all other anchors on the line. (In my own collection, there is also an addition of outer and inner anchors which lie on the inner side and the outer side of the line, disregarding what outer sep is/are.)
 
@Qrrbrbirlbel Yeah, I think I might be putting the cart before the horse. It seems that most people do the heavy duty / nitty gritty calculating in \savedanchor and then reuse the saved anchor in calculating other bits. I was trying to do the calculation outside and reuse it in the \savedanchor declaration
 
@ThomasH I’m happy to take a look at it as soon it is posted. Make a good MWE and distract the real PGF experts, otherwise they will probably be faster. ;)
 
6:25 PM
@egreg Do you think we'll beat Martin:)
 
@Qrrbrbirlbel all yours :)
0
Q: How can I define a calculation of a dimension that I can reuse in a \savedanchor declaration?

ThomasHIn the following MWE, I declare a new shape myshape. In several instances, I plan to use a dimension that is calculated from different pgf keys (\my@width). One of these instances includes the declaration of the saved anchor \base. At the moment, I have to duplicate the code that calculated this ...

 
@lockstep is close...
user image
2
 
6:42 PM
@JosephWright: ack? :)
 
@lockstep just received the first gold Steward badge (just waiting for the system to kick in and identify it) - congratulations:
6
 
All hail @lockstep!
 
reviewers hats off to you its takes more than answering
5
 
7:08 PM
@ThomasH I’m gonna take a better look at it as soon as dinner is finished. :)
 
@DavidCarlisle I did.
 
@egreg I meant @lockstep and me:-)
 
 
1 hour later…
8:30 PM
@PauloCereda I have no sympathy:
0
Q: Vim-latex adds extra brackets when typing empty brackets

BrianI just installed the vim latex-suite plugin. Whenever I type empty brackets, parentheses, or braces, I get an extra pair of them, and I am moved to the middle of the new pair and put into insert mode. i.e. after typing {} I get {}{} with the cursor between the second pair of empty brace...

 
8:47 PM
@ThomasH I tried to give some opinion about the situation and offered some other alternatives. Hope it explains the complication a little better.
 
@ThomasH You don't need the \base anchor to be a saved one, you know?
 
9:10 PM
@ThomasH The \pgf@sh@savedpoints contains the code \def \my@height {71.13188pt}\def \my@width {16.09285pt} (for the second node), and in fact, the following works:
  \savedanchor\base{
    \pgf@sh@savedpoints
    \pgf@x=\my@width
    \pgf@x=.5\pgf@x
    \pgf@y=0pt
  }
 
@DavidCarlisle Can I answer in the only correct way? "Remove vim from your computer and your consciousness."
@ℝaphink Hey! Comment ça va?
 
bien merci @egreg
et toi?
 
@ℝaphink Let me stop showing my poor French. :) Good time TeXing. :) Horrible weather outside. And the new MacBook Pro is fantastic.
 
hehe
 
@ℝaphink My new MacBook Pro is fantastic, I should have said. ;-)
 
9:24 PM
I see
 
@egreg ML is cool. :)
 
@PauloCereda I'm inclined to say so. :)
 
@egreg :)
 
9:40 PM
@percusse Thanks for the awesomely patient answer. I read Andrew's answer several times before that but every time my eyes see an \expand or edef my brain seems to switch off
All I took from his answer was that you can hack your way around the problem by making sure there's no new assignments between two \saveddimen declarations. Instead, I wanted to do it the 'right' way ...
@Qrrbrbirlbel But I need a saved anchor, no? I do have the textsize one, but that's an afterthought, since I don't plan the node to contain any text really.
I was hoping to draw the shape from the`\base` anchor upwards. That is, if the node is placed at (0,0), I wanted the \base anchor to be at (0,0) rather than the center of the shape
@Qrrbrbirlbel That would be a worthy answer to the question I posted as well, if you want to add it. But it seems from your and @percusse's answer that what I am trying to do is not how it should be done, since both approaches resort to 'hackery' of some form or another :(
 
10:03 PM
@ThomasH Nope, you do not need a saved anchor, at least not with the shape definition you provided. You can define base entirely from \my@width and \pgf@x=0pt (which is what you wanted all along).
(You can of course also define two anchors and calculate the width and the height from that. In fact, if you do not use \my@width and \my@length anymore, I would define only the anchors.)
 
@Qrrbrbirlbel I see, well, tbh, I've tried so many different approaches trying to get it to work, I'm not sure what's needed anymore (head cold doesn't help)
 
For compatibility reasons I would also define the anchors center, west, east, north, south. (Important for the positioning library.) Maybe base * and mid *, too.
 
Though the pgf manual says:
In order to define a new shape, you must provide:
• a shape name,
• code for computing the saved anchors and saved dimensions,
• code for computing anchor positions in terms of the saved anchors,
Then again, it does say "code for saved anchors" not "saved anchors"
 
@ThomasH Interesting. I'd read that as an "and/or" ;).
 
Yes, I was getting to those, though if I define east, west and others that don't sit on actual lines, I'm probably better off inheriting from rectangle and save myself the grief. I don't think there's any anchors that wouldn't be covered by it
 
10:07 PM
Besides, an anchor is just two dimensions.
Your shape is a anomaly of a rectangle.
 
Mass time! :) I love today's liturgy (not as much as I love tomorrow's, though!), specially the Tantum ergo part. :)
 
Besides position and rotation, a rectangle can be defined by the width and the height (and the fact, that it is a rectangle, of course).
 
@Qrrbrbirlbel you're probably right about the and/or, since \saveddimen is not a must, afaik
 
The rectangle shape, though, is actually defined by the lower left and the upper right corner.
You could also save anchors south and north east, and calculate everything else (the path) from that.
Let me give you a threepart answer ...
 
@Qrrbrbirlbel do you happen to know which part of it is placed on the actual coordinate? I would like that to be the bottom of my shape (as currently defined by the \base anchor)
 
10:10 PM
1. saved anchor + \pgf@sh@savedpoints; 2. without any saved anchor; 3. without saved dimen.
(0,0) in the local node coordinate system (i.e. \pgf@x=0pt and \pgf@y=0pt) is at the baseline of the node text (the left one). (I think, let me check.)
@Qrrbrbirlbel Yes, the centerpoint lies on .5\wd and .5\ht of the \pgfnodeparttextbox.
 
@Qrrbrbirlbel You need all dimensions defined before you invoke \pgf@sh@savedpoints.
 
@percusse In @ThomasH’s case all dimensions are already defined that are needed.
It won't even work inside another \saveddimen.
 
@Qrrbrbirlbel Yes but if you have cross defintions you'll probably get TeX exceed limits errors.
 
@Qrrbrbirlbel While \pgf@sh@savedpoints would work, I would like to keep with good Tex coding standards :(
 
@percusse @ThomasH Yes, I wouldn’t recommend it, anyway.
 
10:19 PM
So the preferred approach would be then to "compute from first principles" in any \saved... definition, i.e. use only commands already established by pgf?
 
10:59 PM
@Qrrbrbirlbel I think your pgf function answer might be better than mine:-)
 
I wish there was a CodeReview site for Latex
 
00:00 - 23:0023:00 - 00:00

« first day (879 days earlier)      last day (4058 days later) »