如何解决如何在RMarkdown中添加不缩进的项目符号
您能帮我弄清楚如何在RMarkdown中添加一些 un 缩进的项目符号吗?
我在Rmd文件中尝试了以下操作,其中•abc 来自复制粘贴,而* abc 应该是我想要的,但会自动缩进:如何获取未缩进的项目符号(这意味着 * abc 中的点位置应与标题相同(测试未缩进的项目符号)?
谢谢!
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
public class Ipc_Tcp
{
// Thread signal.
public static ManualResetEvent _semaphore = new ManualResetEvent(false);
// maximum length of the pending connections queue.
const int _max_length_pending_connections_queue = 50;
const ushort _port = 11234;
static int _counter = 0;
public static void StartListening()
{
IPEndPoint localEndPoint = new IPEndPoint(System.Net.IPAddress.Loopback,_port);
// Create a TCP/IP socket.
Socket listener = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
try
{
listener.Bind(localEndPoint);
listener.Listen(_max_length_pending_connections_queue);
Console.WriteLine("Waiting for a connection...");
while (true)
{
// Set the event to nonsignaled state.
_semaphore.Reset();
// Start an asynchronous socket to listen for connections.
listener.BeginAccept(new AsyncCallback(AcceptCallback),listener);
// Wait until a connection is made before continuing.
_semaphore.WaitOne();
}
}
catch (Exception e)
{
Console.WriteLine("Something bad happened:");
Console.WriteLine(e.ToString());
Console.WriteLine("\nPress ENTER to continue...");
Console.Read();
}
}
// On new connection
public static void AcceptCallback(IAsyncResult ar)
{
// Signal the main thread to continue.
_semaphore.Set();
var cntr = Interlocked.Increment(ref _counter);
// Get the socket that handles the client request.
Socket listener = (Socket)ar.AsyncState;
Socket socket = listener.EndAccept(ar);
var data = new byte[1024];
var i = socket.Receive(data);
// print message every 100 times
if (cntr % 100 == 0)
Console.WriteLine($"[{cntr}] Received data: {System.Text.Encoding.UTF8.GetString(data,i)}");
// close socket we are only receiving events
socket.Close();
}
public static int Main(String[] args)
{
StartListening();
return 0;
}
}
解决方法
这是解决方案:
\begin{itemize}[leftmargin=*]
\item one
\item two
\item three
\end{itemize}
我从https://tex.stackexchange.com/questions/91124/itemize-removing-natural-indent
找到了这个我可以将其放在Rmd文档中,输出的PDF是我想要的(没有缩进的项目符号)。
谢谢。
,发生自动缩进是因为它是作为列表注册的,我不确定如何禁用它。
这可能不是您想要的完全是,但是您可以尝试复制粘贴项目符号的符号吗?
这就是这里:•
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。