Tag Info

New answers tagged

0

Sorry to violate guidelines, but I don't yet have enough reputation to comment. The problem that \Hy@raisedlink may wind up at the end of the previous page seems significant to me. The problem that \raisebox looking bad because it is too close to the top of the line can be solved by using a coefficient: \raisebox{1.2\ht\strutbox} looks pretty good to my ...


3

This requires -shell-escape and pdfinfo: \documentclass{article} \usepackage{printlen} \uselengthunit{cm} \newcommand{\getpdfinfo}[1]{% \openin\pdfread="|pdfinfo #1" \begingroup\endlinechar=-1 \loop\ifeof\pdfread \else \read\pdfread to \infoline \processinfoline \repeat \endgroup } \newread\pdfread \def\processinfoline{% ...


2

A fault in the XREF-table of your PDF seems to be responsible for the problems with XeTeX. You can repair your PDFs with a tool like pdftk: pdftk broken.pdf output repaired.pdf


4

Martin Schröder's answer is entirely correct. The different free distributions use the same software and so should produce the same results. However, different versions of pdfTeX may produce different PDFs. This is not necessarily a matter of quality, though, and I doubt it would make much difference to the printed result. It might, however, make a ...


4

Here's a quick bash script to check for instances of RGB colors: #!/bin/sh pdftops $1.pdf -eps $1.eps status=$(grep -o "RGB" $1.eps | wc -l) echo "$status instance(s) of RGB colorspaces found in file $1.eps" exit $status And a .bat version for Windows: @echo off pdftops %1.pdf -eps %1.eps type %1.eps | find "RGB" /c > __my%1.tmp set /p ...


2

Manual additions to the ToC should be accompanied with \phantomsection before the sectioning command is issued, when used in conjunction with hyperref package. \documentclass{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[hidelinks,bookmarksopen=true]{hyperref} \begin{document} \tableofcontents \chapter{First} ...


0

Here is an approach that combines InftyReader and AbiWord. Suppose we have a file example.pdf First process it with the free version of InftyReader. This will not give the TeX directly (except for the first page) but it will produce a file example.pdf2txt Then you can run AbiWord on this file: abiword --to=tex example.pdf2txt The result ...


2

I suppose that what you look for is Table of Contents (ToC), which is included by the command \tableofcontents. If you call \usepackage{hyperref} as well, the items in the ToC will be clickable: \documentclass{article} \usepackage{hyperref} \begin{document} \tableofcontents \section{First section} \subsection{Its subsection} \section{Another section} ...


0

On the moderncv.cls file I removed the baseurl= http:// option under hypersetup and it worked. I'm not sure why but it did.


7

Maybe you can use a simple \colorbox: \documentclass[xcolor=svgnames]{beamer} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{mwe}% to get an example image \setbeamerfont{title}{size=\Huge} \setbeamercolor{background canvas}{bg=black} \setbeamercolor{normal text}{fg=white} \setbeamercolor{title}{fg=white} \setbeamercolor{frametitle}{fg=yellow} ...


1

To my opinion, dspdfviewer is currently the best choice to be used with latex beamer and notes on a second screen under linux. It covers all features requested by the initial question. I tested it and it works very well, even with different resolutions. Many thanks to Danny Edel.


4

I suspect the shadowing uses PDF features, which are not available in PostScript. From the documentations, pgf-blur: This effect can be achieved in TikZ/PGF with the circular drop shadow key, And from the PGF manual: In addition to the general shadow option, there exist special options like circular shadow. These can only (sensibly) be used ...


0

Here, we give a simple answer to this question by using a few latex packages. For example, the LaTeX code: %% To make "loremipsum.pdf" % \documentclass[10pt]{article} % \usepackage{lipsum} %\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} % \renewcommand{\baselinestretch}{1.33} % \begin{document} % \section*{Lorem Ipsum} % \lipsum % ...


4

Use \rput(! \pstnodescale\space 80 80){X}% scales down from pt to bp and it will be correct. It is a problem with the xdvipdfmx config file. Needs some more investigations. With the dvips driver it is ok. If you do not have an up-to-date PSTricks then write also into the preamble \SpecialCoor


2

Another option would be to use Pandoc to convert your LaTeX to EPUB. This would be reflowable, and would work on different sized readers without adjustment. Equations are handled quite nicely.


0

Main advises: Use a6paper in geometry option list, this may be the designed paper size for 6 inch Kindle. Remove all header/foot utils, they just waste spaces for the 6 inch kindle. Use relative width value for all width settings, especially environment related, i.e., for Figure, use .9/textwidth is a good trying, and you may find let this constant setting ...


1

Not sure to understand well what you want. Here is a way of doing what I've grasped, with the titlesec.titleps packages. Using \raisebox and defining a new page style is enough. I suppose it can be adapted to fancyhdr. I aloso loaded the geometry package, with option showframe to visually check the details: \documentclass[12pt, a4paper, twoside]{book}% ...


1

Use of background is a feasible way. Here \newcommand\BackGroundImage[2][1] is defined to take one argument for image and one optional argument for the width of the image. Note: If no margin on the left and right, remove the command option [0.5]. Code \documentclass{article} ...


5

The \url command can be redefined the same way as hyperref. The following example first defines url command \guilurl, which uses single guillemots as angle brackets. Then \url is redefined using \guilurl: \documentclass{article} \usepackage[T1]{fontenc}% \guilsinglleft and \guilsinglright \usepackage{lmodern} \usepackage{amstext} \usepackage{hyperref} ...


9

Experience with the Accessibility Package I downloaded the accessibility style from Babette Schalitz's website. From emails I understand that she was going to post this at CTAN.org with a public license, so I think this should be "fair use". Using \usepackage[tagged]{accessibility} in my preamble allowed me you to generate a basic tagged PDF file that ...


-2

In this condition, you can read the blog posted at the following web-link: Perform PDF repair when issues bother you while vieweing data and know easy guideline how to recover or restore corrupt, damaged PDF files. In addition, you can check this tool : http://www.pdffilerepair.net


0

I updated R to version 3.1.1 (by removing R 3.1.0 and installing R 3.1.1 from source) - and voila, it works!


0

In Texmaker, the "--output-directory=build" parameter is only supported by the latex and pdflatex commands and not by bibtex. This is a known issue in Texmaker. Inorder to solve this, either Disable "Build subdirectory" option in Texmaker, under Options -> Configure Texmaker -> Commands, Uncheck "Use a Build Sub-Directory for output files" and try Quick ...


8

Thanks to the comment of Paul Gessler, I found ocg-p, which does exactly what I need. Here is a demonstration of an unprintable colorbox: \documentclass[]{minimal} \usepackage{ocg-p} \usepackage{xcolor} \definecolor{testcol}{cmyk}{0,0,0.5,0} \begin{document} regular text % \begin{ocg}{layer name}{layer id}{initial visibility} ...


2

use a greater coordinate system for pspicture. With \psframebox you can make the area which TeX seas visible: \documentclass{article} \usepackage{pst-plot} \begin{document} \psframebox*[fillcolor=black!20,fillstyle=solid]{% \begin{pspicture}(-0.5,-0.5)(5.5,5.5)%%%%%%%%%% \psgrid[gridcolor=red,subgridcolor=green, gridlabels=0](0,0)(5,5) ...



Top 50 recent answers are included