R_markdown can't compile my code in pdf-file, because package lmodern doesn't like cyrillic symbols. Could I disable lmodern in the header of rmarkdown and how if i could? This doesn't help:
---
title: "«Ластовецкий Дмитрий_ДКР2_ПСА-3"
author: "Ластовецкий Дмитрий"
date: "08 06 2021"
output:
pdf_document:
extra_dependencies:
lmodern: NULL
header-includes:
- \usepackage[T2A]{fontenc}
- \usepackage[utf8]{inputenc}
lang: ru-RU
---
# Задание 1:
Для задачи классификации я решил выбрать датасет, использованный маркетологами банков Португалии. Описание всех оригинальных переменных можно прочитать на кэггл (https://www.kaggle.com/sonujha090/bank-marketing) Приведу описания только тех переменных, что пригодились мне в ходе исследования (после моих преобразований, замены строчных данных на binary), а также верхнюю часть итоговой таблицы данных:
The error now is:
! Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not fo
und.
<to be read again>
relax
l.112 ...\familydefault\seriesdefault\shapedefault
! name = larm1000, rootname = larm, pointsize = 1000
! mktexmf: empty or non-existent rootfile!
! mktexmf: empty or non-existent rootfile!
! kpathsea: Running mktexmf larm1000.mf
! The command name is C:\Users\79671\AppData\Roaming\TinyTeX\bin\win32\mktexmf
! Cannot find larm1000.mf.
! Cannot find larm1000.mf.
! kpathsea: Running mktextfm larm1000
! The command name is C:\Users\79671\AppData\Roaming\TinyTeX\bin\win32\mktextfm
! kpathsea: Appending font creation commands to missfont.log.
In TeXStudio errors are:
line 112: Font T2A/cmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not found. ...\familydefault\seriesdefault\shapedefault
line 539: Font T2A/lmr/m/n/10=larm1000 at 10.0pt not loadable: Metric (TFM) file not found. ...andafter\ifx\the\font\nullfont\normalfont
line 76: Missing \begin{document}. \nobreakspace
line 1161: Package babel Error: Unknown option 'russian'. Either you misspelled itd. \ExecuteOptions{\bbl#opt#main}
line 1163: Package babel Error: Unknown option 'russian'. Either you misspelled itd. \ProcessOptions*
line 95: pdfTeX error (font): invalid font identifier. \begin{document}
line 112: Font shape `T2A/lmr/m/n' undefined(Font) using `T2A/cmr/m/n' instead
: No file Ластовецкий_ДКР2_ПСА-3.aux.
Related
I am trying to generate a pdf file from this sample beamer presentation file:
\begin{document}
\frame {
\titlepage
}
\frame {
\frametitle{Sample Page 1}
\[\frac{-b \pm \sqrt{b^2 - c}}{2a}\]
}
\frame{
\frametitle{Sample Page 2}
\framesubtitle{An Example of Lists}
\begin{itemize}
\item 1
\item 2
\item 3
\end{itemize}
}
\frame{
\frametitle{Paragraph Content}
This is a paragraph.
}
\end{document}
I tried to generate a PDF file using pdflatex but it fails:
!pdfTeX error: pdflatex (file cmss10.t3): cannot open Type 1 font file for reading ==> Fatal error occurred, no output PDF file produced!
I downloaded the missing file and put it in the same directory where my tex file is and reran the pdflatex command, the error message is:
!pdfTeX error: pdflatex (file ./cmss10.t3): Type3 fonts unsupported by pdfTeX
Can someone suggest me how to solve that issue ? By the way, I am using TexLive full scheme on Fedora 35.
Thanks in advance
I installed MacTex from brew brew install mactex-no-gui --cask
test.tex
\documentclass{jarticle}
\usepackage{amsmath,amsfonts}
\begin{document}
mytest--m=testmode テストを行う
\end{document}
I try to compile this this simple text with platex
It shows this error.
I guess it is related to unicode setting ??
because I put some Japanese character in it.
How can I fix it?
$platex test.tex
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.euc) (TeX Live 2020) (preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./test.tex
pLaTeX2e <2020-02-02>+3 (based on LaTeX2e <2020-02-02> patch level 5)
L3 programming layer <2020-03-06>
(/usr/local/texlive/2020/texmf-dist/tex/platex/base/jarticle.cls
Document Class: jarticle 2020/01/03 v1.8e Standard pLaTeX class
(/usr/local/texlive/2020/texmf-dist/tex/platex/base/jsize10.clo))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2020/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./test.aux)
! Package inputenc Error: Unicode character ^^H (U+0008)
(inputenc) not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.6 mytest^^H
--m=crond テストを行う
I have some legacy batch file that generates a PDF with LaTeX. There is a main.tex file which "includes" multiple *.tex files as subpages.
In the main .tex file I already have declared \usepackage{float}.
When executing the batch which launches the generation of the PDF I get the error:
! LaTeX Error: Unknown float option 'H'.
Adding the \usepackage{float} before the \begin{document} in the file where the problem comes from throws the error:
! LaTeX Error: Can be used only in preamble.
How can I fix this?
Replacing .*}[H] with .*}[h!] fixed the problem.
I'm running the following Pandoc 2.0.3 command on the Mac Terminal command line:
pandoc one.md "metadata.yaml" -o two.pdf
This should take the markdown file one.md and output two.pdf using the yaml file metadata.yaml, a minimal version of which is:
---
header-includes:
- \usepackage{fancyhdr}
...
This Pandoc run produces a PDF as expected for the following version of one.md:
# Report
However, it fails to produce a PDF for the following version of one.md, which contains body text:
# Report
Lorem.
The resulting error message is:
Error producing PDF.
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.65 header-includes: - \usepackage
I don't understand why including that one word creates a failure.
Your one.md likely doesn't end with a newline. Pandoc concatenates all input files, adding a single newline between files. So the resulting input will be:
# Report
Lorem.
---
header-includes:
- \usepackage{fancyhdr}
...
As a result, the opening dashes of the YAML block are interpreted as underlines for Lorem., which is then read as a second-level header. This doesn't happen if the line above the --- dashes is an ATX-style header.
Just add a newline to the end of one.md and everything should work the way you expected.
I am trying to link an URL which contains a # (hash) sign, see upstream code here:
http://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_8.2.html#para_4bcb841e-c6bf-4e26-82a5-3fad3c942da0
Everything works as expected with HTML output, but things gets nasty with LaTeX output (PDF). It fails with:
! Illegal parameter number in definition of \Hy#tempa.
<to be read again>
p
l.153 ...ageref{classgdcm_1_1ImageRegionReader}}{}
?
Looking at the generated code, I see:
\href{http://dicom.nema.org/medical/dicom/current/output/chtml/part05/sect_8.2.html#para_4bcb841e-c6bf-4e26-82a5-3fad3c942da0}
I cannot simply escape the # sign with a backslash since it would break the HTML output (but fix the LaTeX output). I found on the web that including bigfoot before hyperref can solve this sort of issue, but this did not work for me using the following trick in the doxyfile:
## -1650,7 +1650,7 ## PAPER_TYPE = letter
# If left blank no extra packages will be included.
# This tag requires that the tag GENERATE_LATEX is set to YES.
-EXTRA_PACKAGES =
+EXTRA_PACKAGES = bigfoot
# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
# generated LaTeX document. The header should contain everything until the first
Is there anything simple to include a URL with # sign that works for both HTML and LaTeX output ?
EDIT: I found out that doxygen generate the following code:
% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,pagebackref=true]{hyperref}
\else
\usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
So I cannot explicitly \usepackage{hyperref} after \usepackage{bigfoot} since this creates some sort of conflict.
Package hyperref Message: Driver (autodetected): hpdftex.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
! LaTeX Error: Option clash for package hyperref.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.101 \else