小编Mat*_*gro的帖子

等式中大括号旁边的两个语句

我想{在右边写一个带有一个花括号()的方程式,在两个不同的行旁边写着两个语句.我该怎么做?谢谢.

latex

90
推荐指数
4
解决办法
18万
查看次数

Python Turtle,用更大的字体在屏幕上绘制文本

我正在使用python turtle的write方法在屏幕上写文字,如下所示:

turtle.write("messi fan")
Run Code Online (Sandbox Code Playgroud)

字体的大小太小.如何增加字体大小?

python turtle-graphics

10
推荐指数
1
解决办法
8万
查看次数

如何设置列的固定宽度?

大家好我正在创建一个关于latex的表我的代码如下所示:

\begin{table}[H]
\centering
\caption{caption}
\label{my-label}
\begin{tabular}{lll}
\hline
\multicolumn{3}{|c|}{\cellcolor[HTML]{34CDF9}{\color[HTML]{000000} Matriz confusión  Genero.}} \\ \hline
\multicolumn{1}{|l|}{}        & \multicolumn{1}{l|}{M}       & \multicolumn{1}{l|}{F}        \\ \hline        
\multicolumn{1}{|l|}{M}        & \multicolumn{1}{l|}{43}       & \multicolumn{1}{l|}{7}        \\ \hline
\multicolumn{1}{|l|}{F}        & \multicolumn{1}{l|}{11}       & \multicolumn{1}{l|}{39}       \\ \hline
\end{tabular}
\end{table}
Run Code Online (Sandbox Code Playgroud)

它运行良好,但问题出现在我尝试修复我尝试的列的宽度时:

\begin{tabular}{l{2cm}|l{2cm}|l{2cm}}
Run Code Online (Sandbox Code Playgroud)

结果是相同的表,具有可变长度的列,我想修复列的长度,我想欣赏任何解决此问题的建议.

latex

9
推荐指数
1
解决办法
4万
查看次数

删除部分编号乳胶

我有乳胶切片编号的问题.我想从标题和内容中删除部分编号,但我希望数字存在于lemmas,定理等等.我希望它看起来像:

 Section Whatever
   Some unimportant text.

 Section Whatever else
   Another unimportant text.
   Lemma 2.1
   Theorem 2.2 

 Section Whatever again
   Theorem 3.1
Run Code Online (Sandbox Code Playgroud)

我该怎么做?我试过了

 \renewcommand\thesection{}
Run Code Online (Sandbox Code Playgroud)

但它甚至从引理和定理中删除了数字.非常感谢你 :)

latex sections

7
推荐指数
1
解决办法
7206
查看次数

选择Cell时,UITableViewCell可以更改Cell的大小

我想更改所选单元格的大小.但是,他们改变了触摸细胞的位置.

-       (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *currentCell = [aTableView cellForRowAtIndexPath:indexPath];

CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:currentCell];
[UIView setAnimationDidStopSelector:@selector(endAnimation)];

float extendedSize = currentCell.frame.size.height;
currentCell.frame = CGRectMake(currentCell.frame.origin.x, currentCell.frame.origin.y, currentCell.frame.size.width, currentCell.frame.size.height + extendedSize);

UITableViewCell *afterCell;
for (int i=indexPath.row+1; i<=[aTableView numberOfRowsInSection:indexPath.section]; i++) {
    afterCell = [aTableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:indexPath.section]];
    afterCell.frame = CGRectMake(afterCell.frame.origin.x, (afterCell.frame.origin.y + extendedSize), afterCell.frame.size.width, afterCell.frame.size.height);
}
[UIView commitAnimations];
}
Run Code Online (Sandbox Code Playgroud)

谢谢.

iphone objective-c

6
推荐指数
1
解决办法
4884
查看次数

如何在LaTeX幻灯片中放置一个大中心的"谢谢"

我想要一个"谢谢"显示在LaTeX中具有大字体大小的幻灯片的中心.

latex beamer presentation

6
推荐指数
3
解决办法
3万
查看次数

在Brainfuck中多次打印文本

我在Brainfuck尝试了这个hello world程序.如何多次打印文本?这是我的代码:

+++++++[>++++++++++ <- ] >++.>++++++[>++++++++++ <- ] >+++++++++.>+++++++[>++++++++++ <- ] >++++++..>+++++++[>++++++++++ <- ] >+++++++++.>+++[>++++++++++ <-]>++. >++++++++[>++++++++++<-]>+++++++.>+++++++[>++++++++++<-] >+++++++++.>++++++++[>++++++++++ <-]>++.>+++++++[>++++++++++ <- ] >++++++.>++++++[>++++++++++ <-]>++++++++.>+++[>++++++++++<-]>++.>+++[>++++++++++<-]>+++.>+++[>++++++++++<-]>+++.
Run Code Online (Sandbox Code Playgroud)

loops brainfuck

6
推荐指数
1
解决办法
525
查看次数

TikZ,调整大小和装配

我想拍摄PGF图片,缩小它(缩放文本,所以\resizebox会很完美)以获得一定的高度,然后在图片的左侧放置一个旋转的文本并创建一个包含所有内容的节点.

像这样的东西:

算法示例

但我希望能够设置图表的高度而不缩小旋转的"标题".

以下是此示例的LaTeX代码:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,fit,shapes.geometric,backgrounds}

\begin{document}
\begin{tikzpicture}[%
  inner sep=2mm,
    delimiter/.style={ellipse, very thick, fill=red!30, draw=red!50},
    action/.style={trapezium, trapezium left angle=120, trapezium right angle=60, thick, fill=blue!30, draw=blue!50, align=center},
    loop/.style={ellipse, thick, fill=yellow!30, draw=yellow!50, align=center},
  title/.style={font=\LARGE\scshape,node distance=16pt, text=black!40, inner sep=1mm},
  background/.style={rectangle, rounded corners, fill=black!5, draw=black!15, inner sep=4mm}
]

  \node[delimiter] (begin) {Begin};
  \node[action] (cluster residues) [below=of begin] {Cluster residues};
  \node[action] (set clusters) [below=of cluster residues] {Set properties\\for every cluster};
  \node[action] (find pockets) [below=of set clusters] {Find clusters with\\$normalized\ SAS < 1$};
  \node[action] …
Run Code Online (Sandbox Code Playgroud)

latex tikz image-resizing

6
推荐指数
1
解决办法
8494
查看次数

Latex 中表格单元格内的自动分页符

我有一个关于 Latex 长桌子的问题。如何自动打破长表格单元格内的文本内容。

乳胶示例

我读了很多文章和例子并尝试了它(例如longtable)但我仍然不敢相信应该没有解决方案。目前我正在使用 Apache FOP 处理器通过 XSLT 生成 PDF 文档。在这里,表格被包裹在一个单元格内。 Apache FOP 示例

有人遇到同样的问题并有解决方案吗?谢谢你,弗兰克

xslt latex apache-fop

6
推荐指数
0
解决办法
845
查看次数

如何固定我的乳胶数学术语的宽度和高度?

如何固定我的乳胶数学术语的宽度和高度?

我目前正在编写一个交互式网络功能,我可以在其中单击乳胶数学术语,它会取消为零。然而,现在,它有点跳动/毛刺,因为一旦用户点击第一个数学项的大小(如图中以橙色突出显示)。

原始状态

用户点击第一个词后

有没有办法可以在单击前后将橙色框的宽度和高度设置为恒定宽度?

<p>
<span class="special">Mass Continuity Equation:</span> 
<span class="first" id="first" data-click-state="1">\({{\partial \rho} \over {\partial t}}\)</span>
<span id="second">\(+\)</span> 
<span id="third" data-click-state="1">\({{\partial u} \over {\partial x}}\)</span> 
<span id="symbol"> \(+\) </span> 
<span id="fourth" data-click-state="1"> \({{\partial v} \over {\partial y}}\)</span> 
<span id="fifth">\(+\)</span> 
<span id="sixth" data-click-state="1"> \({{\partial w} \over {\partial z}}\) </span>
<span id="seventh">\(= 0\)</span> 
</p>
Run Code Online (Sandbox Code Playgroud)

用户单击第一个术语后,将呈现:

<p>
<span class="special">Mass Continuity Equation:</span> 
<span class="first" id="first" data-click-state="0">\(\require{cancel}\cancelto{0} {{\partial \rho} \over {\partial t}}\)</span>
<span id="second">\(+\)</span> 
<span id="third" data-click-state="1">\({{\partial u} \over {\partial x}}\)</span> 
<span id="symbol"> \(+\) </span> …
Run Code Online (Sandbox Code Playgroud)

html css mathjax

5
推荐指数
1
解决办法
164
查看次数