首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如果我的LaTeX表超出了我的页面,那么如何使用长表包使表在下一页中继续呢?

如果我的LaTeX表超出了我的页面,那么如何使用长表包使表在下一页中继续呢?
EN

Stack Overflow用户
提问于 2022-04-02 00:39:37
回答 1查看 1.3K关注 0票数 0

这是我的代码,我有问题,适合它的水平,但我在前面的问题上得到帮助。问题是,当我添加所需的所有文本时,该表垂直扩展到页面之外。我试着寻找将它分成2页的方法,我发现了长的包,但是它在我的代码中非常奇怪。也许我遗漏了什么?

代码语言:javascript
运行
复制
\documentclass[12pt,oneside,final]{article}
%\doctype{Thesis}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{layout}
\usepackage[algo2e, ruled, vlined]{algorithm2e} 
\usepackage{tabularray}
\usepackage{makecell}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{tabularray}
\usepackage{geometry}
%\geometry{hmargin=1cm}
\begin{document}
\begin{table}[htbp]
%\resizebox{\textwidth}{!}{%
\begin{longtblr}{|l|X[l]|l|X[l]|}
\hline
Date   & Luis Lacalle Pou  & Date & Alberto Fernandez                                                                                                               \\ \hline 
May 21  &  Announces the return to in-person classes strategy. The return was meant to be undertaken voluntarily and in three stages by the month of June. “We are taking this decision because we are convinced that the risk is minimal. We wouldn’t be doing it otherwise”(Infobae, 2020)   & April 25  & Announcement of the extension of the lockdown. The president did not make explicit mention of the school closing but thanked “the little ones” for staying at home, protecting the health of the elder. “Keep trying to train yourselves at home (...)” he recommended to the youth. The specific word choice of train as opposed to educate, seems to hint at an awareness of the diminished educational processes during the lockdown. (Casa Rosada, 2020a)
\\ \hline
June 25  & Press conference speech. He qualified the lockdown as “the easy response” and pointed that it was “against his beliefs of individual freedom”. He highlighted the success of returning to in-person learning, especially for rural schools where the digital divide was a great concern. He denounced the “false dichotomy between health and the economy” expressing his concern for “mental health” and the increase in mental issues during the quarantine period. (CED Uruguay, 2020)     & June 20   & Speech during Argentina’s Flag Day. On this holiday, 4th grade students across the country pledge allegiance to the flag. The speech does not address the school closing situation, the learning crisis or a possible return.  (Casa Rosada, 2020b)  
\\ \hline
July 12  & Lacalle Pou justified the enactment of the Urgent Consideration Law by explaining the positive changes it would bring to education among other factors he presented in a Twitter thread. He promotes the enactment of the law because it will “strengthen educational establishments, legally back up the Teacher Education Council, and create a system of national scholarships for universities.  The law received huge backlashes from the popular sectors, criticized as “neoliberal”. (Lacalle Pou, 2020a) & July 18   & Press conference along with Buenos Aires’ governor and the Autonomous City of Buenos Aires’ mayor. Fernandez speaks about the “new normalcy”, praises the lockdown, comparing Argentina's situation with the crisis in the Basque Countries. He makes no mention about the education system. (Casa Rosada, 2020c)                                                               \\ \hline
July 22      & Press conference about the increase of COVID-19 cases in different infection focuses. He claimed that even though the contagion was increasing the re-opening guarantees achieved until then, were not going to change. (Lacalle Pou, 2020b)                        
& July 31   & Speech directed to the argentinean youth asking them to avoid social interactions. He based his request on the “solidarity” they should display to the elder that have a greater fatality rate from COVID-19.  He “summoned” all argentinians to “avoid spreading the virus as well as getting infected with the virus” He expressed that it was not a matter of “civic liberty”  but rather of solidarity. (Casa Rosada, 2020d)  
\\ \hline
September 22 & Speech for the General Assembly in the UN.  “Our country’s answer to the pandemic (...) was based on our citizens' use of their liberty with responsibility, solidarity and generosity, which in addition to a robust and resilient health system has allowed us to return to work, educational and cultural activities.”(Lacalle Pou, 2020c)                                                  
& August 28 & Announcement of the extension of the quarantine restrictions. “It has been almost 100 days of quarantine, I know it is tough (...) for those of us who cannot send their children to school and the kids that stay at home, it is hard for all. Yet I am convinced that the quarantine avoided a sanitary collapse like happened in many countries and cities around the world” . (Casa Rosada, 2020e))          
\\ \hline
\end{longtblr}%
%}
\caption{A sample long table.} 
\label{tab:long}
\end{table}
\end{document}

目前的情况如下:

EN

回答 1

Stack Overflow用户

发布于 2022-04-02 10:40:34

table是一个浮动对象,它仅限于单个页面。如果希望longtblr在页面之间中断,请不要将其包装到table环境中:

代码语言:javascript
运行
复制
\documentclass[12pt,oneside,final]{article}
%\doctype{Thesis}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{layout}
\usepackage[algo2e, ruled, vlined]{algorithm2e} 
\usepackage{tabularray}
\usepackage{makecell}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{tabularray}
\usepackage{geometry}
%\geometry{hmargin=1cm}
\begin{document}

\begin{longtblr}[
    caption = {A sample long table.},
    label = {tab:long}
]{|l|X[l]|l|X[l]|}
\hline
Date   & Luis Lacalle Pou  & Date & Alberto Fernandez                                                                                                               \\ \hline 
May 21  &  Announces the return to in-person classes strategy. The return was meant to be undertaken voluntarily and in three stages by the month of June. “We are taking this decision because we are convinced that the risk is minimal. We wouldn’t be doing it otherwise”(Infobae, 2020)   & April 25  & Announcement of the extension of the lockdown. The president did not make explicit mention of the school closing but thanked “the little ones” for staying at home, protecting the health of the elder. “Keep trying to train yourselves at home (...)” he recommended to the youth. The specific word choice of train as opposed to educate, seems to hint at an awareness of the diminished educational processes during the lockdown. (Casa Rosada, 2020a)
\\ \hline
June 25  & Press conference speech. He qualified the lockdown as “the easy response” and pointed that it was “against his beliefs of individual freedom”. He highlighted the success of returning to in-person learning, especially for rural schools where the digital divide was a great concern. He denounced the “false dichotomy between health and the economy” expressing his concern for “mental health” and the increase in mental issues during the quarantine period. (CED Uruguay, 2020)     & June 20   & Speech during Argentina’s Flag Day. On this holiday, 4th grade students across the country pledge allegiance to the flag. The speech does not address the school closing situation, the learning crisis or a possible return.  (Casa Rosada, 2020b)  
\\ \hline
July 12  & Lacalle Pou justified the enactment of the Urgent Consideration Law by explaining the positive changes it would bring to education among other factors he presented in a Twitter thread. He promotes the enactment of the law because it will “strengthen educational establishments, legally back up the Teacher Education Council, and create a system of national scholarships for universities.  The law received huge backlashes from the popular sectors, criticized as “neoliberal”. (Lacalle Pou, 2020a) & July 18   & Press conference along with Buenos Aires’ governor and the Autonomous City of Buenos Aires’ mayor. Fernandez speaks about the “new normalcy”, praises the lockdown, comparing Argentina's situation with the crisis in the Basque Countries. He makes no mention about the education system. (Casa Rosada, 2020c)                                                               \\ \hline
July 22      & Press conference about the increase of COVID-19 cases in different infection focuses. He claimed that even though the contagion was increasing the re-opening guarantees achieved until then, were not going to change. (Lacalle Pou, 2020b)                        
& July 31   & Speech directed to the argentinean youth asking them to avoid social interactions. He based his request on the “solidarity” they should display to the elder that have a greater fatality rate from COVID-19.  He “summoned” all argentinians to “avoid spreading the virus as well as getting infected with the virus” He expressed that it was not a matter of “civic liberty”  but rather of solidarity. (Casa Rosada, 2020d)  
\\ \hline
September 22 & Speech for the General Assembly in the UN.  “Our country’s answer to the pandemic (...) was based on our citizens' use of their liberty with responsibility, solidarity and generosity, which in addition to a robust and resilient health system has allowed us to return to work, educational and cultural activities.”(Lacalle Pou, 2020c)                                                  
& August 28 & Announcement of the extension of the quarantine restrictions. “It has been almost 100 days of quarantine, I know it is tough (...) for those of us who cannot send their children to school and the kids that stay at home, it is hard for all. Yet I am convinced that the quarantine avoided a sanitary collapse like happened in many countries and cities around the world” . (Casa Rosada, 2020e))          
\\ \hline
\end{longtblr}%

\end{document}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71714014

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档