LaTeX为啥摘要会跑到另一页上
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LaTeX为啥摘要会跑到另一页上相关的知识,希望对你有一定的参考价值。
\documentclassmcmthesis\mcmsetupCTeX =true,tcn = 1914512, problem = D, titlepage = false,keywordsinsheet=true,titleinsheet=true\usepackagepalatino%标题%\today\setlength\headheight30pt\begindocument\titlemeisai\date\beginabstract%内容The ability of Crowd evacuation in dense places is directly related to the safety guarantee ability of large public places.How to ensure the safety, rapid and orderly evacuation of Crowd, has become an important responsibility of the government and large public places management departments.We establish an adaptive evacuation model for multi-story buildings and apply the model to the Louvre.Secondly, we apply the principle of cellular automata to the honeycomb model and combine with the improved ant colony algorithm to establish the model for solving the optimal path of the exit, we call HCO model.The evacuation model of multi-story building is established by successive approximation method, which we call HCC model.For the diversity of tourists, we divided the elderly, children, young people, middle-aged people and disabled people into three groups: dominant group, vulnerable group and disabled group. Different evacuation processes were established according to the three groups.On the basis of the group psychology and group leader effect of the tourists who speak different languages, we establish different evacuation processes.The bottleneck's traffic coefficient and tourist inflow rate are used as the indicators to discern the bottleneck, and the queuing theory is used to estimate the evacuation time of the bottleneck, so that the effect of identifying or predicting the bottleneck can be achieved.When there is a bottleneck or potential bottleneck, we change the state of the cell to change the path choice of tourists.\begin在线问答平台,解答问题社区,解答问题平台%%%%%%关键词%%%%%%%%%%%%%%%%Evacuation; Louvre; queuing theory; analytic hierarchy process; cellular automata; honeycomb model; successive analysis\end在线问答平台,解答问题社区,解答问题平台\endabstract\maketitle
参考技术A 您的摘要太长了,一般来讲摘要是给一些商业读者使用的应该做到语言简洁,建议你再删一点。然后你试试这段代码,应该可以让你的report看起来排版更好看一些。
%----------------------------------------
% TITLE PAGE INFORMATION
%----------------------------------------
\titleOptimisation and Control of Ethyl Acetate Saponification in a Continuously Stirred Tank Reactor
\author[1]Andreas Richardson
\author[1]Maria Zagorulko
\author[1]Yihan Zhang
\affil[1]Knowledge Lab Group 41, Department of Chemical Engineering, Imperial College London
\dateFebruary 2019
%----------------------------------------
% REPORT CONTENTS
%----------------------------------------
\begindocument
% title page
\onecolumn
\maketitle
\inputsections/abstract.tex
······
\enddocument
然后新建一个abstract.tex
输入:
\beginabstract
The following industrial report explores the application of process control to the saponification reaction between ethyl acetate and sodium hydroxide in a continuously-stirred tank reactor. The client, Pharma Ltd., is yet to turn this chemical reaction into a profitable branch of their business and so the whole process is examined and optimised, working on a scaled-down version of the reaction system. PID control is implemented via LabView software to observe the response of manipulated variables relevant to the process control.
Following three weeks of experimental work we report the development of effective level and flow PI controllers. Furthermore, our research shows the positive correlation beetween increased temperature and reactant conversion. Finally, we describe an efficient optimisation framework that handles the aforementioned parameters simultaneously, which has the potential to be applied to a wider range of systems and reactions requiring optimisation.
\textitKeywords: process control, kinetics, saponification, CSTR, tuning, optimisation
\endabstract
为什么我的SESSION数组在一页上可以,但在另一页上可以为空?
我有一个设置各种会话变量的类。设置会话变量后,我将进行SESSION的var转储并获取所有输出。到目前为止一切都很好。然后,我导航到另一个页面。
session_start(); // i call this right after opening the php tag
var_dump($_SESSION); // i call this after setting the variables
这次是空的吗?
设置我的会话
while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC))
$_SESSION['atid'] = $row['autotaskid'];
$_SESSION['bmsid'] = $row['bmsid'];
$_SESSION['shavlikid'] = $row['shavlikid'];
$_SESSION['cpid'] = $row['cpid'];
试图在另一页上使用变量
$autotaskid = $_SESSION['atid'];
$tsql = "SELECT COUNT(tblBackupArchive.StatusID) AS total, tblBackupArchive.StatusID ".
"FROM tblBackupArchive INNER JOIN ".
"tblBackup ON tblBackupArchive.BackupID = tblBackup.BackupID ".
"GROUP BY tblBackupArchive.StatusID, tblBackup.ClientID ".
"HAVING (tblBackup.ClientID = " . $autotaskid . ")";
结果在
Undefined index: atid in C:\Program File...
我已经确定要发布start_session();函数在使用它们的每个页面上运行任何其他代码之前。
另一个重要点:php页面,该页面调用在iframe中设置变量的方法。当我在新标签页/窗口中打开页面时,它可以正确设置会话。几乎就像主窗口中有会话变量一样,然后每个iframe都将其单独保存。
有什么想法吗?
比利
有什么想法吗?
是。您必须学习调试代码。如您所见,您的问题无法凭空猜测。因此,该进行手动操作了。
- 首先请确保您可以看到发生的任何错误。只需添加一个故意的,看看。如果没有看到错误,则必须将其打开。
然后制作一个测试脚本,以查看您的会话是否正常工作
<? session_start(); if (!isset($_SESSION['counter'])) $_SESSION['counter']=0; echo "Refreshed ".$_SESSION['counter']++." times.<br> <a href=".$_SERVER['PHP_SELF'].'?'.session_name().'='.session_id().">refresh</a>"; ?>
如果可行,请使其使用Cookie
<?
session_start();
if (!isset($_SESSION['counter'])) $_SESSION['counter']=0;
echo "Refreshed ".$_SESSION['counter']++." times.<br>
<a href=".$_SERVER['PHP_SELF'].">refresh</a>";
?>
如果也可行,则必须检查代码。打印出变量,减少代码,等等
尝试比较会话ID。如果您在通话中获得了不同的会话ID,则说明会话管理设置不正确。
即您的代码可能依赖于存储在cookie中的会话ID,但是该选项被禁用(请参见php.ini
)。
作为调试措施,您可以使用“透明会话ID”(它们连接到任何链接),但不能用于生产代码。
基于您的第一个代码块,听起来您可能正在调用session_start()
after,而您试图设置$_SESSION
变量。您必须先致电session_start()
!我可能是错的,在这种情况下,我表示歉意。但是根据上面的代码片段,很可能是您的问题!
如果您要呼叫session_close()
,那么您是否不小心破坏了会话?也许有太多session_destroy()
呼叫?
我说的太少了。
请确保:
- 您在设置或获取会话变量之前执行
session_start()
。 (如果服务器配置为自动启动会话,则没有必要。) - 两个脚本都位于同一(子)域上。 (页面位于同一服务器上不足以共享会话是足够的,它们还必须属于相同的(子)域。)
I was facing the same problem. One impotent thin that session must be defined as first line of the code...even no single line space from top. Second the session variable must be defined at global level first. Normally arrays are fetched with in a loops from MySql data. And loop variables are not available at global level. So it must be defined at global level. It solved my problem.
<?PHP
session_start();
$items = array();
$_SESSION['item'] = $items;
?>
现在就做你想做的事...
以上是关于LaTeX为啥摘要会跑到另一页上的主要内容,如果未能解决你的问题,请参考以下文章
两个页面上相同的锚点 ID:如何从一个页面链接到另一页上的锚点
为什么我的SESSION数组在一页上可以,但在另一页上可以为空?
如何使用JavaScript / JQuery显示表单中所有HTML输入值的摘要?