Tag Info

11

\documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{calc,backgrounds} \usepackage{hieroglf} \newcommand*{\llygaddienyddiwr}{\textpmhg{\He}} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground} % adapted (simplified version) from tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybackgrounds.code.tex \makeatletter \tikzset{% ...

7

You need not any special font, any PSTricks, only \pdfliteral: \newcount\tmpnum \def\tallymarks#1{\leavevmode \lower1bp\vbox to9bp{}% \tmpnum=#1 \loop \ifnum\tmpnum<5 \kern1bp \tallynum\tmpnum \else \tallyV \fi \advance\tmpnum by-5 \ifnum\tmpnum>0 \repeat } \def\tallynum#1{\bgroup\tmpnum=#1\relax \loop \ifnum\tmpnum>0 ...

5

It is very simple to do with pstricks, and more specifically with pst-node and auto-pst-pdf: put everything in a postscript environment, define the elements you want to join as nodes, and connect these nodes: \documentclass{article} \usepackage{amsmath} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document} \begin{postscript} ...

4

Here is an expl3 approach: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \int_new:N \snehal_tally_full_int \int_new:N \snehal_tally_partial_int \box_new:N \snehal_tally_slash_box \cs_generate_variant:Nn \int_step_inline:nnnn { nnVn } \cs_new_protected:Npn \snehal_tally_mark:n #1 { \int_set:Nn \snehal_tally_full_int { \int_div_truncate:nn { ...

3

A surface is divided into more or less small rectangles. For every small rectangles you can build the direction vector. The angle of this 3D vector and the distance from the origin allows to sort all rectangles. A direction vector which shows into the paper plane marks an invisible area. If it shows out of the paper plane it marks a visible area. These areas ...

2

This might be a start: \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (magic0) at (0,1) [matrix of nodes]{ \{ & aaaaaaa, & bbbb, & c, & dd & \}\\ }; \matrix (magic1) at (0,0) [matrix of nodes]{ \{ & a, & b, & cc, & ddd & \} \\ }; ...

2

I played a bit with tikz, and this is the result (I only show the second example, since that seem to be the problematic one): \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{tikz} \begin{document} \begin{gather*} \{a, \tikz[baseline,remember picture]{\node[anchor=base,inner xsep=0pt] (b1) {$bbbb$};}, c, \tikz[baseline,remember ...

2

You mentioned that a TikZ solution might be acceptable (if Herberts excellent answer wasn't present). Also, I prefer the "box method" (I din't know if it has a proper name) for such counting tasks, so I did this here. I don't know if the lines ought to be jittery, it could be added, but so far I did not. The command does not break across lines. Code ...

2

I've had the same problem for a few months. Something must have changed in pstricks. My solution was to remove the pdf option, and replace it with what the option does: loading auto-pst-pdf after pstricks.

1

With the standalone class your example fails with another error due to a option clash with preview. With article I can reproduce your error and it is due to a bug in pstricks: There are too many braces and so it loads auto-pst-pdf in a group. One can demonstrate the problem with this code: \documentclass{article} \usepackage{pstricks} ...

1

\documentclass{article} \usepackage{pstricks-add} \begin{document} \psset{psgrid,gridcoor={(-7,-5)(7,5)}, gridpara={gridlabels=0pt,gridcolor=red!30, subgridcolor=green!30, subgridwidth=0.5\pslinewidth, subgriddiv=2,labelFontSize=\scriptstyle}% } ...

1

Use the ylabelOffset key: \documentclass{article} \usepackage{pstricks-add} \usepackage{auto-pst-pdf} \begin{document} \begin{center} \psset{xunit=1cm,yunit=1cm} \begin{pspicture}(-7.5,-5.5)(7.5,5.5) \psgrid[gridwidth=0.2pt, gridlabels=0pt, subgriddiv=2](-7,-5)(7,5) \psaxes[labelFontSize=\scriptstyle, ticks=none, ylabelOffset=0.08, ...

1

The next code works with xelatex and latex too: \documentclass{bookcover} \usepackage{pst-barcode} \begin{document} \makeatletter\TP@absposfalse\makeatother\newgeometry{left=0em,top=-1em} % fixing code \setbookcover{fgfirst}{back}{ \vfill \centering \parbox[b][1in]{1.5in}{\psbarcode{978-85-85818-86-9}{includetext width=1.5 height=1}{isbn}} \vspace{5mm} } ...

Only top voted, non community-wiki answers of a minimum length are eligible