Since the rotated table will take up a full page anyway (not as complex to position as a partial-page float), you can use afterpage
to avoid breaking up the text flow.
\documentclass{article}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{lipsum} % for filler text only
\begin{document}
\pagestyle{myheadings} % to show header behavior
\lipsum
\afterpage{%
\begin{landscape}
\begin{table}[p]
\caption{Rotated table caption.}
\lipsum[1]
\end{table}
\end{landscape}
}
\lipsum
\end{document}
Part answer to my own question, from Aditya Mahajan on ConTeXt mailing
list (verbatim, but with formatting and links):
Read about TDS (TeX Directory Structure).
You need to put files in $TEXMF/tex/plain/
subdirectory for Plain
format to find it, or in $TEXMF/tex/generic/
subdirectory for all
macro packages (plain, latex, context) to find it.
As experiment, placed eplain's source files in $HOME/texmf/tex/generic/eplain/
. No other copies visible. For a file testdox.tex
, containing \input eplain
, the command
luatex --fmt luatex-plain testdoc.tex
does indeed find eplain.tex
. Executed three of the “generate
” commands:
mktexlsr
context --generate
luatools --generate
And now all of the these command will find the file:
luatools --find-file eplain.tex
mtx-run --locate eplain.tex
kpsewhich eplain.tex
In addition, if others have problems with font locations in ConTeXt, for OTF fonts, using Alegreya* as an example, I
- created the directory: ''$HOME/texmf/fonts/opentype/huerta/alegreya'' and
- copied all the ''*.otf'' files there.
- By running the “
generate
” commands above,
- followed by the font update commands below,
\font\x = <font>
also now works without having to install the fonts in the operating system.
mtxrun --script fonts --update --force
mtxrun --script fonts --update --simple --force
Edit: Path issues solved. Works on Windows as well, just ensure you're happy with the setting of %TEXMFHOME%
, which you can set with a batch file, or permanently in %TEXMF%\tex\texmf\web2c\texmf.cnf
). I run this ctxenv.cmd
file from a Cmd Prompt console before starting to work with ConTeXt's LuaTeX:
@echo off
:: Sets ConTeXt environment for running ConTeXt tools.
:: NB: This includes setting TEXMFHOME and calling
:: .\tex\setuptex.bat. It also add the ''.\utl''
:: directory to your PATH. This file must live in
:: your ConTeXt base directory. It will set %CTX%
:: for convenience.
::
set CTX=%~dp0
set CTX=%CTX:~0,-1%
set PATH=%CTX%\utl;%CTX%\bin;%PATH%
set TEXMFHOME=%CTX%\local
.\tex\setuptex.bat
:: optional: remove the colons in front of these commands:
::mktexlsr
::context --generate
::luatools --generate
As for the TL math fonts setting problem, I'll rephrase as a new question.
*Alegrya: http://www.ctan.org/tex-archive/fonts/alegreya/
Best Answer
TeX/Latex and all their friends are the best solution for any type of reports (sorry if I am biased).
I use them for probably the most unlike application. Construction reports - as in Building Construction! I have been doing so for quite a long time. The reports include anything from graphs to financial summaries and commissioning data for electro-mechanical services.
Some pointers, before you automate anything write a few static reports. Define what changes weekly/monthly such as graphs, tables etc. and then automate via python/lua or whatever language you are comfortable.
At the moment - I just import tables via PgfplotsTable. This makes it easy to interface with external programs via csv delimited tables. The datatool package also provides similar functionality. All graphs are automated via LaTeX. No need to struggle to interface with external programs.
Use LaTeX to start with and PGF/TikZ for graphics. Get some pointers from Tufte for presentation and readability. It is not necessary to buy anything.
One of the drawbacks I had at the beginning was to convince people to give sections of the content in plain text files and to get them to divorce excel.