如何解决在 LaTeX 中无法在多列中添加空间即使用 \vspace{length}即在 \begin{multicols} 环境中
我试图在第一列中添加垂直空间,但在写入 \vspace{10cm} 后,仍然没有得到所需的结果。 Image of required result can be found here。 如果代码有问题(代码附后),请更正。否则你也可以建议其他方法。
\documentclass{article}
\usepackage{multicol}
\usepackage{tikz}
\begin{document}
\begin{multicols}{2}
\vspace{10cm}
\begin{flushleft}
Date:
\\ Place
\end{flushleft}
\columnbreak
examiners \\
\begin{flushright}
\par
1.\begin{tikzpicture}
\draw [thick,densely dashed={dash pattern=on 3pt off 2pt}] (0,0) -- (7,0);
\end{tikzpicture}
\par
2.\begin{tikzpicture}
\draw [thick,0);
\end{tikzpicture}
\end{flushright}
\end{multicols}
\end{document}
解决方法
如果 {"meals":[{"idMeal":"52852","strMeal":"Tuna Nicoise","strDrinkAlternate":null,"strCategory":"Seafood","strArea":"French","strInstructions":"Heat oven to 200C\/fan 180C\/gas 6. Toss the potatoes with 2 tsp oil and some seasoning. Tip onto a large baking tray,then roast for 20 mins,stirring halfway,until crisp,golden and cooked through.\r\nMeanwhile,put eggs in a small pan of water,bring to the boil,then simmer for 8-10 mins,depending on how you like them cooked. Plunge into a bowl of cold water to cool for a few mins. Peel away the shells,then cut into halves.\r\nIn a large salad bowl,whisk together the remaining oil,red wine vinegar,capers and chopped tomatoes. Season,tip in the onion,spinach,tuna and potatoes,then gently toss together. Top with the eggs,then serve straight away.","strMealThumb":"https:\/\/www.themealdb.com\/images\/media\/meals\/yypwwq1511304979.jpg","strTags":null,"strYoutube":"https:\/\/www.youtube.com\/watch?v=3_UAxkx0u6U","strIngredient1":"Potatoes","strIngredient2":"Olive Oil","strIngredient3":"Eggs","strIngredient4":"Red Wine Vinegar","strIngredient5":"Capers","strIngredient6":"Sunflower Oil","strIngredient7":"Red Onions","strIngredient8":"Spinach","strIngredient9":"Tuna","strIngredient10":"","strIngredient11":"","strIngredient12":"","strIngredient13":"","strIngredient14":"","strIngredient15":"","strIngredient16":"","strIngredient17":"","strIngredient18":"","strIngredient19":"","strIngredient20":"","strMeasure1":"450g","strMeasure2":"2 tblsp ","strMeasure3":"4","strMeasure4":"1 tbls","strMeasure5":"2 tblsp ","strMeasure6":"50g","strMeasure7":"\u00bd","strMeasure8":"100g ","strMeasure9":"400g","strMeasure10":"","strMeasure11":"","strMeasure12":"","strMeasure13":"","strMeasure14":"","strMeasure15":"","strMeasure16":"","strMeasure17":"","strMeasure18":"","strMeasure19":"","strMeasure20":"","strSource":"https:\/\/www.bbcgoodfood.com\/recipes\/9529\/winter-tuna-nioise","strImageSource":null,"strCreativeCommonsConfirmed":null,"dateModified":null}]}
不是列中的第一件事,它会起作用。你可以在它之前添加一些不可见的东西,比如 \vspace
。
题外话:
-
在虚线上使用 tikz 感觉有点矫枉过正,你可以使用
\mbox{}
代替(这也可以避免过满警告) -
您不应该滥用
\dotfill
作为换行符,这会导致许多未满框警告。只需留下一个空行即可开始新的段落
\\
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。