리소스
- Overview
- 빠른 시작
- Claude 3 모델 카드
- Claude 3.7 시스템 카드
- 시스템 상태
- Anthropic 코스
- 프롬프트 라이브러리
- 프롬프트 라이브러리
- 우주의 키스트로크
- 기업 선견자
- 웹사이트 마법사
- 엑셀 수식 전문가
- Google 앱스 스크립트 작성자
- Python 버그 버스터
- 시간 여행 컨설턴트
- 스토리텔링 조력자
- 출처 인용하기
- SQL 마법사
- 꿈 해석가
- 말장난꾼
- 요리 크리에이터
- 혼성어 시인
- 유머러스한 도우미 할(Hal)
- LaTeX 전문가
- 감정 색상화
- Git 마스터하기
- 비유의 달인
- 윤리적 딜레마 내비게이터
- 회의 기록자
- 관용구 해설가
- 코드 컨설턴트
- 함수 제작기
- 신조어 창작자
- CSV 변환기
- 이모지 인코더
- 문장 개선기
- 관점 분석기
- 퀴즈 생성기
- 마음챙김 멘토
- 초등학교 2학년 수준 단순화기
- VR 피트니스 혁신가
- PII 정화기
- 메모 마에스트로
- 커리어 코치
- 채점 전문가
- 혀 꼬부리기
- 면접 질문 작성기
- 문법 지니
- 수수께끼를 내겠습니다
- 코드 명확화 도구
- 외계 인류학자
- 데이터 정리기
- 브랜드 빌더
- 효율성 추정기
- 리뷰 분류기
- 방향 디코더
- 동기부여 뮤즈
- 이메일 추출기
- 마스터 중재자
- 수업 계획 작성기
- 소크라테스식 현자
- 두운법 연금술사
- 미래적 패션 어드바이저
- 다국어 초능력
- 제품 이름 짓기 전문가
- 철학적 사색
- 스프레드시트 마법사
- 공상과학 시나리오 시뮬레이터
- 적응형 에디터
- 바벨의 방송
- 트윗 톤 감지기
- 공항 코드 분석기
프롬프트 라이브러리
LaTeX 전문가
수학 방정식, 표 등을 위한 코드를 생성하여 LaTeX 문서를 작성합니다.
직접 시도해보려면 이 프롬프트를 개발자 Console에 복사하세요!
내용 | |
---|---|
System | 당신은 학술 및 기술 문서 작성에 널리 사용되는 문서 준비 시스템인 LaTeX에 전문 지식을 갖춘 AI 어시스턴트입니다. 당신의 임무는 수학 방정식, 표 등과 같은 다양한 요소에 대한 적절한 코드를 제공하여 사용자가 LaTeX 문서를 작성하도록 돕는 것입니다. 사용자가 LaTeX 코드를 효과적으로 사용하는 방법을 이해할 수 있도록 명확한 설명과 예시를 제공하세요. |
User | 세 개의 열과 두 개의 행이 있는 간단한 표를 만들어야 합니다. 헤더 행에는 “Name,” “Age,” “City”라는 제목이 포함되어야 합니다. 데이터 행에는 “John,” “25,” “New York”이라는 값이 있어야 합니다. |
예시 출력
세 개의 열과 두 개의 행이 있는 간단한 표를 만들기 위한 LaTeX 코드입니다. 헤더 행에는 “Name,” “Age,” “City”라는 제목이 포함되어 있고, 데이터 행에는 “John,” “25,” “New York”이라는 값이 있습니다:
\begin{table}[h]
\centering
\begin{tabular}{|c|c|c|}
\hline
Name & Age & City \\
\hline
John & 25 & New York \\
\hline
\end{tabular}
\caption{Sample Table}
\label{tab:sample}
\end{table}
설명:
table
환경은 LaTeX에 의해 자동으로 위치를 지정할 수 있는 부동 테이블을 만드는 데 사용됩니다.- 선택적
[h]
매개변수는 가능한 경우 문서 흐름에서 “여기(here)“에 테이블을 배치하도록 LaTeX에 제안합니다. \centering
명령은 테이블을 페이지에서 가로로 중앙에 배치합니다.tabular
환경은 실제 테이블 구조를 만드는 데 사용됩니다.{|c|c|c|}
인수는 세 개의 중앙 정렬된 열(c
)을 수직선(|
)으로 구분하여 지정합니다.\hline
명령은 헤더 행을 데이터 행과 구분하고 테이블을 프레임하기 위해 수평선을 추가합니다.&
문자는 행 내의 셀을 구분하고,\\
는 행의 끝을 표시합니다.\caption
명령은 테이블에 캡션을 추가하며, 이 예시에서는 “Sample Table”로 레이블이 지정됩니다.\label
명령은 테이블에 레이블을 할당하며, 이는 문서 내에서 상호 참조하는 데 사용할 수 있습니다.
LaTeX 문서를 컴파일하면 이 코드는 다음과 같은 테이블을 생성합니다:
+---+---+---+
| Name | Age | City |
+---+---+---+
| John | 25 | New York |
+---+---+---+
API 요청
import anthropic
client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=2000,
temperature=0,
system="You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": 'I need to create a simple table with three columns and two rows. The header row should contain the titles "Name," "Age," and "City." The data row should have the values "John," "25," and "New York."',
}
],
}
],
)
print(message.content)
import anthropic
client = anthropic.Anthropic( # defaults to os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=2000,
temperature=0,
system="You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": 'I need to create a simple table with three columns and two rows. The header row should contain the titles "Name," "Age," and "City." The data row should have the values "John," "25," and "New York."',
}
],
}
],
)
print(message.content)
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "my_api_key", // defaults to process.env["ANTHROPIC_API_KEY"]
});
const msg = await anthropic.messages.create({
model: "claude-opus-4-20250514",
max_tokens: 2000,
temperature: 0,
system: "You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "I need to create a simple table with three columns and two rows. The header row should contain the titles \"Name,\" \"Age,\" and \"City.\" The data row should have the values \"John,\" \"25,\" and \"New York.\""
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicBedrock
# See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
# for authentication options
client = AnthropicBedrock()
message = client.messages.create(
model="anthropic.claude-opus-4-20250514-v1:0",
max_tokens=2000,
temperature=0,
system="You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "I need to create a simple table with three columns and two rows. The header row should contain the titles \"Name,\" \"Age,\" and \"City.\" The data row should have the values \"John,\" \"25,\" and \"New York.\""
}
]
}
]
)
print(message.content)
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk";
// See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
// for authentication options
const client = new AnthropicBedrock();
const msg = await client.messages.create({
model: "anthropic.claude-opus-4-20250514-v1:0",
max_tokens: 2000,
temperature: 0,
system: "You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "I need to create a simple table with three columns and two rows. The header row should contain the titles \"Name,\" \"Age,\" and \"City.\" The data row should have the values \"John,\" \"25,\" and \"New York.\""
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-3-7-sonnet-v1@20250219",
max_tokens=2000,
temperature=0,
system="You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "I need to create a simple table with three columns and two rows. The header row should contain the titles \"Name,\" \"Age,\" and \"City.\" The data row should have the values \"John,\" \"25,\" and \"New York.\""
}
]
}
]
)
print(message.content)
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
// Reads from the `CLOUD_ML_REGION` & `ANTHROPIC_VERTEX_PROJECT_ID` environment variables.
// Additionally goes through the standard `google-auth-library` flow.
const client = new AnthropicVertex();
const msg = await client.messages.create({
model: "claude-3-7-sonnet-v1@20250219",
max_tokens: 2000,
temperature: 0,
system: "You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "I need to create a simple table with three columns and two rows. The header row should contain the titles \"Name,\" \"Age,\" and \"City.\" The data row should have the values \"John,\" \"25,\" and \"New York.\""
}
]
}
]
});
console.log(msg);
Was this page helpful?