我想将代码与源代码(图像 1)对齐,因为正如您在输出(图像 2)中看到的,它完全不同。
\documentclass[12pt, a4paper]{article}
% Language setting
% Replace `english' with e.g. `spanish' to change the document language
\usepackage[italian]{babel}
% Set page size and margins
% Replace `letterpaper' with `a4paper' for UK/EU standard size
\usepackage[a4paper,top=0.2cm,bottom=0.5cm,left=1cm,right=0.5cm,marginparwidth=1.75cm]{geometry}
% Useful packages
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\usepackage{minted}
\usepackage{color}
\usepackage[utf8]{inputenc}
\begin{document}
LPS23-AP3 exercise 1.1
% attributi eliminati: frame=single,
% nasm -> MIPS32 oppure gas
\begin{minted}[linenos,framesep=20pt,tabsize=4, autogobble, breaklines]{gas}