Welcome to

PharmTeX

News

28 SEP 2023: PharmTeX class v. 2.6 is out along with bundle version 2.2 (Tex Live 2022) for Windows and Linux.

09 MAR 2022: PharmTeX class v. 2.5 is out along with bundle version 2.1 (Tex Live 2021) for Windows and Linux. It adds additional support for external file systems as well as bug fixes and improvements.

10 DEC 2021: PharmTeX class v. 2.4 is out with bug fixes and improvements.

31 OCT 2020: PharmTeX class 2.0 and bundle 2.0 released with major overhaul of setup. Much smaller footprint of Linux bundle and Tex Live for both Windows and Linux. Improved handling of column scaling for merged columns. Class definition files are now part of the bundle and now longer need to be present in the report directory. Temporary files generated by PharmTeX are now located in a subdirectory for a cleaner look of the report folder. Cheatsheet can be loaded with F6 in Texstudio. Separate bibliographies for Synopsis, Main Body, and Appedices. List of Appendices Added. And much more...

01 JUL 2020: PharmTeX software bundles v. 1.3 released with new versions of MiKTeX and Tex Live.

26 APR 2020: PharmTeX class v. 1.13 released with some improvements and bug fixes.

28 MAR 2019: PharmTeX class v. 1.10 released with a new feature for image-based tables and other improvements.

10 JAN 2019: Added improved features for conversion of PharmTeX reports to Microsoft Word format as of new class v. 1.9 (bundle v. 1.2 required). See more in the PharmTeX user guide under Tutorials. Switched the editor in the bundles (as of v. 1.2) to Texstudio instead of Texmaker. Texstudio is based on Texmaker, but offers several additional features.

02 OCT 2018: PharmTeX now supports nlmixr as of class v. 1.8. The command \nlmixr applied to any nlmixr run will automatically generate PharmTeX code for all tables and plots in the run. See more in the PharmTeX user guide under Tutorials.

About PharmTeX

PharmTeX is an open-source platform for creating PDF reports for the pharmaceutical industry directly from source input, e.g. image and table files, that in turn can be created directly from mathematical software such as R, SAS, and MATLAB. This allows for a fully reproducible reporting workflow, and the resulting reports are set up to be consistent with regulatory expectations. PharmTeX is based on LaTeX, a markup language that is the gold standard for typesetting and publishing scientific papers and books. PharmTeX was originally developed at Pfizer, Global Pharmacometrics, and is consistent with Pfizer submission standards. It is described in this paper in the AAPS Journal which you can read online here.

The LaTeX markup language itself can be somewhat complex for a novel user to learn and fully embrace, particularly if the user is not experienced in writing scripts. The main idea behind PharmTeX is to take the complex elements of LaTeX and put them behind the scenes, allowing the user to interact with simple functions. The user only needs to enter basic information such as the filename/path and caption when inserting figures and tables into the report - PharmTeX takes care of the rest in the background using a LaTeX class/template. This makes LaTeX accessible to users who would not otherwise consider using LaTeX. PharmTeX does not require previous experience with LaTeX, and the user guide (Tutorials) will help a user to create a report from start to finish.

PharmTeX is a GitHub project located on https://github.com/pharmtex, where the source code is maintained and developed. The present website contains the same versions of PharmTeX that are available on GitHub, but packed into ZIP files for convenience. Also, this website contains the software bundles (Downloads) and document examples which are not part of the GitHub repositories. The Windows bundle is based on MiKTeX while the Linux bundle is based on TeX Live.

PharmTeX is free: You can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PharmTeX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. There is a copy of the GNU Affero General Public License included along with the PharmTeX templates and class files. You can also see it here: https://www.gnu.org/licenses.

Software bundles with all the software needed to execute PharmTeX have been created for ease of implementation. We refer the user to the license agreements for each piece of software in the bundles, but currently all the included software in the bundles is free to use for anyone. PharmTeX does not come with a support hotline or similar. However, user guides for self-training are available under Tutorials, and more information, tutorials, example reports, etc. will be added here. Feedback, suggestions, and bug reports are welcomed, either on GitHub or using the email below.

Sincerely,

Christian Hove Claussen

PharmTeX creator

contact@pharmtex.org

Software Bundles

If you do not want to install the required software for PharmTeX yourself, download a software bundle below instead. If you are unsure which, you likely need the Windows version. Have a look at Tutorials for setup instructions. Both bundles are based on TeX Live.

Windows v. 2.2 (28 SEP 2023)
Only 64 bit architecture is supported. Tested on Windows 10.

Linux v. 2.2 (28 SEP 2023)
Only 64 bit architecture is supported. Tested on Ubuntu Linux 22.04.

Class Definition Files

If want to update the class definition files to the latest version of PharmTeX, simply download the ZIP file below and overwrite the files in your "pharmtex" subfolder in your software bundle with the files contained in the ZIP file.

Class files v. 2.6 (28 SEP 2023)

Example Report

Here, you can download an example report with figures and tables included. Have a look at Tutorials for user guides.

Example report

Report Template

Below you will find barebone report complete with a synopsis and all sections proposed for a standard pharmacometrics report

Report template

Old Class Versions

Here is the change log for the class files.

Class files v. 2.6 (28 SEP 2023, current)
Class files v. 2.5 (09 MAR 2022)
Class files v. 2.4 (10 DEC 2021)
Class files v. 2.3 (28 APR 2021)
Class files v. 2.2 (25 FEB 2021)
Class files v. 2.1 (07 DEC 2020)
Class files v. 2.0 (31 OCT 2020)
Class files v. 1.15 (03 JUL 2020)
Class files v. 1.14 (22 JUN 2020)
Class files v. 1.13 (26 APR 2020)
Class files v. 1.12 (18 APR 2019)
Class files v. 1.11 (16 APR 2019)
Class files v. 1.10 (28 MAR 2019)
Class files v. 1.9 (10 JAN 2019)
Class files v. 1.8 (02 OCT 2018)
Class files v. 1.7 (13 JUL 2018)
Class files v. 1.6 (19 APR 2018)
Class files v. 1.5 (17 APR 2018)
Class files v. 1.4 (16 APR 2018)
Class files v. 1.3 (11 APR 2018)
Class files v. 1.2 (09 APR 2018)
Class files v. 1.1 (08 APR 2018)
Class files v. 1.0 (08 MAR 2018)

Old Software Versions

Here is the change log for the software bundles.

Windows v. 2.2 (28 SEP 2023, current)
Windows v. 2.1 (14 JAN 2022)
Windows v. 2.0 (31 OCT 2020)
Windows v. 1.3 (01 JUL 2020)
Windows v. 1.2 (09 JAN 2019)
Windows v. 1.1 (09 APR 2018)
Windows v. 1.0 (08 FEB 2018)

Linux v. 2.2 (28 SEP 2023, current)
Linux v. 2.1 (17 JAN 2022)
Linux v. 2.0 (31 OCT 2020)
Linux v. 1.3 (01 JUL 2020)
Linux v. 1.2 (09 JAN 2019)
Linux v. 1.1 (09 APR 2018)
Linux v. 1.0 (08 FEB 2018)

User Guide

This is the complete user guide for PharmTeX. Unless you are really into manuals I would recommend starting with the quick guide above and then using the user guide's Table of Contents to look up how to do specific things when you need them while writing your first report. The user guide has detailed sections on report creation and the use and features of all PharmTeX commands.

User guide v. 2.1 (03 OCT 2023)