我得到了一个 Latex 项目作为模板,我决定在其上添加一个术语表,但是\printglossary不起作用。我可以添加和使用不同的条目,所以我猜术语表创建不是问题。
我正在使用 Overleaf,如果我尝试一个全新的项目,仅使用术语表(下面的代码)就\printglossary可以正常工作。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[acronym, toc]{glossaries}
\makeglossaries
\input{Bibliocosas/glossary.tex}
\begin{document}
\tableofcontents
\section{First Section}
The \Gls{latex} typesetting markup language is specially suitable for documents that include \gls{maths}. \Glspl{formula} are rendered properly an easily once one gets used to the commands.
\clearpage
\section{Second Section}
\vspace{5mm}
Given a set of numbers, there are elementary methods to compute its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This process is similar to that used for the \acrfull{lcm}.
\clearpage
\printglossary
\clearpage
\printglossary[type=\acronymtype] …Run Code Online (Sandbox Code Playgroud) 我使用背面来编辑乳胶文档。背面平台具有上传图像文件的功能,然后可以引用该图像文件并将其包含在乳胶文档中。
我可以手动将图像上传到背面平台,并从我的乳胶文档中成功使用/引用它们,但我想知道是否有一种方法可以通过 API 以编程方式进行上传。
我想我可能需要使用https://github.com/overleaf/filestore但我不知道如何开始。
仅供参考:我的主要用例是通过 Python(特别是 Google Colab 笔记本)执行此操作。
有谁知道如何在 LaTeX 中制作一个点击时可以交叉的交互式复选框?现在我可以让它与一个复选框一起使用,该复选框在选中时会发出红光,如下所示:
和
\usepackage{hyperref}
\begin{document}
\begin{Form}
\CheckBox[name=mycheckbox]{This is a check box:}
\end{Form}
\end{document}
Run Code Online (Sandbox Code Playgroud)
但我不确定你如何在检查时将其变成十字而不是发光
我对 LaTeX 有一个大问题,因为我无法删除新章节之前的边距

我已经尝试了一切,但我很新,而且没能成功。我的代码:
\documentclass[polish,12pt,oneside]{mwbk}
\usepackage[a4paper,includeheadfoot,inner=3.0cm,outer=2.5cm,top=3cm,bottom=3cm]{geometry}
\linespread{1.416}
\usepackage{lipsum}
\clubpenalty=10000
\widowpenalty=10000
\usepackage{fancyhdr}
\pagestyle{plain}
\setlength{\headsep}{2em}
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}
\usepackage[utf8]{inputenc}
\usepackage[polish]{babel}
\usepackage{polski}
\usepackage[pagebackref=false]{hyperref}
\bibliographystyle{plplain}
\usepackage{dirtree}
\usepackage{varwidth}
\usepackage[labelsep=period]{caption}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepackage{subcaption}
\usepackage{float}
\usepackage{wasysym}
% THE CODE I'VE TRIED
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
% --- Patch \chapter
\patchcmd{\@makechapterhead}{50\p@}{\chapheadtopskip}{}{}% Space from top of page to CHAPTER X
\patchcmd{\@makechapterhead}{20\p@}{\chapheadsep}{}{}% Space between CHAPTER X and CHAPTER TITLE
\patchcmd{\@makechapterhead}{40\p@}{\chapheadbelowskip}{}{}% Space between CHAPTER TITLE and text
% --- Patch \chapter*
\patchcmd{\@makeschapterhead}{50\p@}{\chapheadtopskip}{}{}% Space from top of page to CHAPTER TITLE
\patchcmd{\@makeschapterhead}{40\p@}{\chapheadbelowskip}{}{}% …Run Code Online (Sandbox Code Playgroud) 我想使用 Overleaf.com 在我的简历中插入 Google Scholar 图标。我的编码方式如下:
\usepackage{academicons}
...
\makefield{\aiGoogleScholar}{\url{https://scholar.google.com.tw/myscholarexample}}
Run Code Online (Sandbox Code Playgroud)
然而,这并没有奏效。
有人可以帮我解决这个问题吗?谢谢你!
有什么方法可以添加 knitr 不知道的包吗?我在 Overleaf 中使用 knit,并且需要使用包“pacma”、“nonlinearTseries”和“RHRV”。但是当我尝试安装它们时,它不起作用。\n我尝试使用库函数添加它们,但它给我带来了错误消息。
\nlibrary("RHRV")\nError in library("RHRV"): there is no package called \xe2\x80\x99RHRV\xe2\x80\x99\nRun Code Online (Sandbox Code Playgroud)\n\n 我的最终目标如下:如果在 GitHub 的某个存储库中拉取 TeX 文件(例如通过 Overleaf),我想自动覆盖我的 GitHub 页面存储库中的关联 PDF 文件(即在 username/username.txt 下)。 github.io)来更新我的 html 主页。到目前为止,我有以下 .yml 代码:
name: Build LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: PDF
path: main.pdf
- name: Download a Build Artifact
uses: actions/download-artifact@v2.0.9
with:
name: PDF
path: path/to/PDF
Run Code Online (Sandbox Code Playgroud)
它在 GitHub UI 中成功生成包含所需 pdf 文件 (main.pdf) 的 zip 文件,并将 …
这是我的文档:
\documentclass[twocolumn]{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{ctex}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{flushend}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{longtable}
\usepackage[normalem]{ulem}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{framed}
\usepackage{changepage}
\usepackage{lettrine}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{wrapfig}
\usepackage{xcolor}
\usepackage{sidecap}
\usepackage{lilyglyphs}
\usepackage{balance}
\setlength{\columnsep}{0.75cm}
\geometry{paperheight=24cm,paperwidth=24cm,left=1.5cm,right=1.5cm,top=1.5cm,bottom=2.5cm}
\title{test}
\author{}
\date{\today}
\begin{document}
\balance
\large \lipsum[1]
\begin{figure*}[hbt!]
\centering
\includegraphics[width=10cm]{8_group.png}
\caption*{Caption 1}
\caption*{Caption 2}
\end{figure*}
\end{document}
Run Code Online (Sandbox Code Playgroud)
文本下方显然有足够的空间来放置图像。如何使图像直接位于文本下方?
我正在使用 LuaLaTeX (TeX Live 2021)(背面)。
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{graphicx}
\usepackage{float}
\usepackage{import}
% links Symbol
\usepackage{bbding,pifont}
\usepackage[hidelinks]{hyperref}
% Redefinition:
\let\orighref\href
\newcommand{\hrefa}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{...code}{#1}}
\newcommand{\hrefb}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{xxx/}{#1}}
\newcommand{\hrefc}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{ccc}{#1}}
\newcommand{\hrefd}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv/}{#1}}
\newcommand{\hrefe}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv}{#1}}
\newcommand{\hreff}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv}{#1}}
% end links symbol
% personal data
\name{...}
\title{}
\address{..}{}{}
\phone[mobile]{+...4}
\email{xxx@a.com}
\extrainfo{\hrefd{xc.com}}
%\photo[64pt][0.4pt]{photo.jpg}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
Run Code Online (Sandbox Code Playgroud)
错误:
LaTeX Error: Option clash for package hyperref.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.40 \begin{document}
The package hyperref has already been loaded with options:
[hidelinks]
There has now …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用背页创建一个乳胶桌。我怎样才能让这个表格显示在一页上?随附的图片显示了我的桌子当前的样子。
\documentclass{article}
\usepackage{booktabs}
\usepackage{dcolumn}
\begin{document}
\begin{table}[ht]
\caption{Summary Statistics and Sell in May Effect}
\centering
\begin{tabular}{c c c c c c c c c c}
\hline\hline
& & & & & & & t-Values of & t-Values of January\\ [0.5ex]
& & & & & & & Adjusted Sell & Dummy with\\
& & & & & & t-Values of Sell in & in May & Adjusted Sell\\
& & & Mean & & & May Dummy & Dummy with & …Run Code Online (Sandbox Code Playgroud) 我在使用 LaTex 时遇到了问题。
\n我正在使用 Overleaf 来阐述我的论文文档,当我尝试编译它时,我收到此错误:
\n<*> Preambulo.tex\n \n*** (job aborted, no legal \\end found)\nRun Code Online (Sandbox Code Playgroud)\n我看过与此问题相关的其他问题,但没有一个有帮助。该错误似乎出现在我的 Preambulo.tex 文件中,该文件是一个应该包含所有文档设置的序言。这是我的 Preambulo.tex 文件的样子:
\n\nRun Code Online (Sandbox Code Playgroud)\\documentclass[a4paper,11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage[english,spanish,es-lcroman]{babel}\n\\usepackage{bookman}\n\\decimalpoint\n\\usepackage{graphicx}\n\\usepackage{amsfonts,amsgen,amsmath,amssymb}\n\\usepackage[top=3cm, bottom=3cm, right=2.54cm, left=2.54cm]{geometry}\n\\usepackage{afterpage}\n\\usepackage{colortbl,longtable}\n\\usepackage[pdfborder={0 0 0}]{hyperref} \n\\usepackage{pdfpages}\n\\usepackage{url}\n\\usepackage[stable]{footmisc}\n\\usepackage{parskip} % para separar p\xc3\xa1rrafos con espacio.\n\\usepackage{hyperref}\n%%-----------------------------------------------\n\\usepackage{fancyhdr}\n\\pagestyle{fancy}\n\\fancyhf{}\n\\fancyhead[LO]{\\leftmark}\n\\fancyhead[RE]{\\rightmark}\n\\setlength{\\headheight}{1.5\\headheight}\n\\cfoot{\\thepage}\n\n\\addto\\captionsspanish{ \\renewcommand{\\contentsname}\n {Tabla de contenidos} }\n\\setcounter{tocdepth}{4}\n\\setcounter{secnumdepth}{4}\n\n\\renewcommand{\\chaptermark}[1]{\\markboth{\\textbf{#1}}{}}\n\\renewcommand{\\sectionmark}[1]{\\markright{\\textbf{\\thesection. #1}}}\n\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}\n\\newcommand{\\bigrule}{\\titlerule[0.5mm]}\n\n\\usepackage{appendix}\n\\renewcommand{\\appendixname}{Anexos}\n\\renewcommand{\\appendixtocname}{Anexos}\n%\\renewcommand{\\appendixpagename}{Anexos}\n%%-----------------------------------------------\n%% P\xc3\xa1ginas en blanco sin cabecera:\n%%-----------------------------------------------\n\\usepackage{dcolumn}\n\\newcolumntype{.}{D{.}{\\esperiod}{-1}}\n\\makeatletter\n\\addto\\shorthandsspanish{\\let\\esperiod\\es@period@code}\n\n\\def\\clearpage{\n \\ifvmode\n \\ifnum \\@dbltopnum =\\m@ne\n \\ifdim \\pagetotal <\\topskip\n \\hbox{}\n \\fi\n \\fi\n \\fi\n \\newpage\n \\thispagestyle{empty}\n \\write\\m@ne{}\n \\vbox{}\n \\penalty -\\@Mi\n}\n\\makeatother\n%%-----------------------------------------------\n%% Estilos c\xc3\xb3digo de lenguajes: Consola, C, C++ y Python\n%%-----------------------------------------------\n\\usepackage{color}\n\n\\definecolor{gray97}{gray}{.97}\n\\definecolor{gray75}{gray}{.75}\n\\definecolor{gray45}{gray}{.45}\n\n\\usepackage{listings}\n\\lstset{ frame=Ltb,\n framerule=0pt,\n aboveskip=0.5cm,\n framextopmargin=3pt,\n framexbottommargin=3pt,\n …
overleaf ×13
latex ×11
checkbox ×1
github-pages ×1
knitr ×1
pdflatex ×1
r ×1
sharelatex ×1
tex ×1