@VincentVerheyen at the moment, in Trichy, a city in India.
Anonymous
I am looking for something similar to the LaTeX Overlay Generator, but instead of generating coordinates for a rectangle, I would like to make polygons (which can also be rectangles, but not necessarily horizontally aligned with the screen) e.g. by placing dots on the background image. --- The polygons don't need to be automatically created if not possible, I can just work with the coordinates in Tikz, if they could at least be generated.
Anonymous
@kan OK. I am living with a Sri Lankan guy at the moment: a meditator.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (a) at (0,0);
\coordinate (b) at (3,0);
\coordinate (c) at (2.5,3.5);
\coordinate (d) at (0,3);
\draw (a) -- (b) -- (c) -- (d) -- cycle;
\node [inner sep=1pt,fill,circle,label=above:middle] at (barycentric cs:a=1,b=1,c=1,d=1) {};
\end{tikzpicture}
\end{document}
@VincentVerheyen See above, for some definition of middle. If you want regular polygons, then look for the regular polygon node shape. With \usetikzlibrary{shapes.geometric} you can do \node [regular polygon,regular polygon sides=5,draw,minimum size=3cm] (a) {}; and then access the centre with a.center.
@VincentVerheyen i don't think so? but as I think I said before, if it can be done in pdf you can probably generate the needed pdf from tex, but can it be done in pdf?
@DavidCarlisle: Is there any reason to use \write\m@ne{} in the definition of \clearpage? This writes nothing to the .log file, as far as I understand \write\m@ne? Is this some kind of 'flushing' buffers?
@ChristianHupfer I think the main point is that it's a non discardable non removable node so makes sure that the empty page isn't lost, but I can't immediately give an example where removing it would make a difference (that is where the \vbox{} that follows wouldn't already have that effect.
@DavidCarlisle How about insert an "empty-looking" object/text/whatever behind or in front of the SVG, so that; when the part of the page slightly before the SVG, up until slightly after the SVG, is copied; a certain text-string is paste when pasted into plain text?
Anonymous
@TorbjørnT. Thank you, I'll need to study a little bit to thoroughly understand your advice, and how to work from there. But is there a way to calculate the middle of ANY n-polygon [that is, it is not yet specified whether the polygon (which could be input by the user, using an arbitrary amount of coo-rdinate #1->#2->#3->#... inputs) is a triangle, rectangle, or a higher polygon et cetera]?
@VincentVerheyen As I tried to say with the code I posted, for some definition of middle you can use the barycentric coordinate system. But as @yo' says, define "middle".
@VincentVerheyen How you apply that depends on how coordinates are given etc.
@JosephWright not sure what exactly it changes, eg if you are printing to dead trees does it make a difference at all or is the generated postscript set to clip to the new page size
@JosephWright yes if you have a4 as default and dont specify a latex paper size use graphics, then pdfinfo will show a4 with dvips/ps2pdf and letter with pdftex
@JosephWright yes pdftex.def sets \pdfpagewidth (after some memoir-specific fudging) but dvips.def does not, so you get letter with pdftex and a4 with dvips
@JosephWright sure, but if you print (on paper with say A4 paper in the tray) does a pdf-specified page size make any difference. in particular is any text outside the specified page size but within the physical paper printed or clipped
if we do add it I suppose has to match what is now in pdftex.def which uses memoir's stocksize setting if it is defined rather than latex's pagesize settings. Not sure it's great to just support one contrib class in the core, but changing pdftex.def as well seems unnecessarily disruptive
@PauloCereda Before i use emacs, i have to make sure that the phone really died or just makes fun of me. Next i would have to find a phone with enough power to start up emacs and run it for five minutes.
@AndrewSwann well it doesn't answer the question as asked but I suspect that it was intended as an addition to the accepted answer rather than as a self-standing answer. As such it ought to be a comment or edit on that answer but not unreasonable for a new user not to attempt that
@JosephWright yes not sure if I understand the blog like aspects of the news yet, whether I just make a file in _postsand it gets picked up or whether you need to do something to update the snippets that appear on the main pages
First of all, I am a complete noob in TeX/LaTeX/ConTeXt/WhaTeVeR, so please be gentle.
OK so I installed ConTeXt (version 2013.84.svn30044-18.5) on my OpenSuSE 42.1 using the official repository, and tried running context --version. This gave me
...
resolvers | resolving |
resolvers ...
\documentclass{article}
\ifnum\pdfoutput=0
\AtBeginDvi{\special{papersize=4in,4in}}
\AtBeginDvi{\special{papersize=5in,3in}}
\else
\pdfpagewidth=4in
\pdfpageheight=4in
\pdfpagewidth=5in
\pdfpageheight=3in
\fi
\begin{document}
a aa a a a a a a a a a a a a a a
\end{document}
@JosephWright (anyone) what is the media size of the above? Answers on a postcard to....
@egreg yes they are the easy case as you just reset the registers before they are used. but with latex I get 5in by 3in with xdvi and 4in square with gv showing the output of dvips and 4in square with xpdf showing output of dvips+ps2pdf
So I have a pandoc question, and but it's about converting Word to LaTeX. I need to tell pandoc how to ignore text marked with a particular paragraph style in word. I suspect if I ask it here, I won't get an answer or everyone will decide it's off topic. So where should I ask it?
But first one wins means it's a tricky thing to set in dvips.def as hard to document what happens if something else sets it directly or in atbegindvi or in Heiko's \AtBeginShipoutFirst (which is what hyperref does)
@egreg well dvips specified the syntax so if it wants to say first one wins I guess it can....
@TorbjørnT. yes thanks, confirms what egreg and I got, which means basically it's not that reliable :(
@DavidCarlisle It should delay setting the bounding box when outputting the first page, but possibly there are issues with PostScript. AFAIK, the bounding box information might also go at the end.
@UlrikeFischer Thanks, that sounds like a better idea. I tend to forget that mailing lists exist...(I barely read the ones I'm subscribed to any more).
@DavidCarlisle Only if they could be magically reinserted into the output document. :)
ladies and gentlemen, boys and girls, ducks and mallards, children of all ages! It is time for organizing another amazing community lottery, our beloved duck giveaway 2016! Quack!
The prize
The prize will be a lovely duck! Not a real one, I am afraid (note to self: organize another lottery with...
@DavidCarlisle can longtable handle a large last foot and no normal foot sensibly? I need to be sure that there is at least one line before the sums at the end ...
@yo' latex +xdvi (or any other dvi viewer you have to hand) and latex+dvips + ps2pdf
@yo' xdvi takes the second so makes a rectangle, dvips takes the first, so makes a square, which is a bit of a pain as they are reading the same dvi file.
A well designed package must be extendable. It will be similar to the concept of moderncv. So I do only a base layout, which can easily be replaced by custom ones. The point Ulrike mentioned is correct, but this is - as I think - more acceptable than putting a ifundefined around every item. If I can do it, the way I intend this, every school boy can design his own layout. — MaestroGlanz22 mins ago