Hello,
I am new at using Ben Jann's "texdoc" to generate dynamic documents with LaTeX commands embedded in the Stata dofile.
I tried to execute texdoc do a do file part of which is here below. But it generates a particular log file which contains only the LaTeX command "{\smallskip}" inserted just below the first LaTeX block. The log file containing only {\smallskip} indeed doesn't allow TeXStudio to compile LaTeX codes to create the corresponding pdf document.
What could be the error I am making?
See part of the do-file below:
set more off
texdoc init AtesoZXZ4presentation.tex, replace
/*** %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer Presentation
% LaTeX Template
% Version 1.0 (10/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%CREATE HANDOUTS
%Now let’s briefly look at creating handouts for our presentation. To do this we add the keyword ‘handout’ into square brackets in the document class command. We then use the ‘pgfpages’ package to help us print multiple slides on a page. After loading the package we use the \pgfpagesuselayout command. In the curly brackets we specify how many frames we want on a sheet. In the square brackets we specify the paper size and how much border shrink we want:
\documentclass[handout]{beamer}
\usepackage{pgfpages}
\usepackage{stata}
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] %Potrait page orientation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%
%If we wanted to put four frames on a sheet we could simply change the 2 to a 4 and then add the ‘landscape’ keyword into the square brackets.
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm,landscape] %Landscape Orientation
%----------------------------------------------------------------------------------------
% PACKAGES AND THEMES
%----------------------------------------------------------------------------------------
%\documentclass[t]{beamer}
\newcommand\Fontvi{\fontsize{10}{7.2}\selectfont} %Creates command Fontvi with font 11
%\documentclass{beamer}
***/
texdoc stlog, cmdstrip
use AtesoZ4presentation.dta,clear
texdoc stlog close
/***
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{booktabs, graphicx}
\usepackage{lipsum}
...
Thanks,
Kizito
I am new at using Ben Jann's "texdoc" to generate dynamic documents with LaTeX commands embedded in the Stata dofile.
I tried to execute texdoc do a do file part of which is here below. But it generates a particular log file which contains only the LaTeX command "{\smallskip}" inserted just below the first LaTeX block. The log file containing only {\smallskip} indeed doesn't allow TeXStudio to compile LaTeX codes to create the corresponding pdf document.
What could be the error I am making?
See part of the do-file below:
set more off
texdoc init AtesoZXZ4presentation.tex, replace
/*** %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beamer Presentation
% LaTeX Template
% Version 1.0 (10/11/12)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%CREATE HANDOUTS
%Now let’s briefly look at creating handouts for our presentation. To do this we add the keyword ‘handout’ into square brackets in the document class command. We then use the ‘pgfpages’ package to help us print multiple slides on a page. After loading the package we use the \pgfpagesuselayout command. In the curly brackets we specify how many frames we want on a sheet. In the square brackets we specify the paper size and how much border shrink we want:
\documentclass[handout]{beamer}
\usepackage{pgfpages}
\usepackage{stata}
%\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] %Potrait page orientation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%
%If we wanted to put four frames on a sheet we could simply change the 2 to a 4 and then add the ‘landscape’ keyword into the square brackets.
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm,landscape] %Landscape Orientation
%----------------------------------------------------------------------------------------
% PACKAGES AND THEMES
%----------------------------------------------------------------------------------------
%\documentclass[t]{beamer}
\newcommand\Fontvi{\fontsize{10}{7.2}\selectfont} %Creates command Fontvi with font 11
%\documentclass{beamer}
***/
texdoc stlog, cmdstrip
use AtesoZ4presentation.dta,clear
texdoc stlog close
/***
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{booktabs, graphicx}
\usepackage{lipsum}
...
Thanks,
Kizito
Comment